2009年1月5日星期一

[fw-mvc] Case Sensitivity Rules for Module names

Hello,

I'm experiencing an issue in an application I am writing.  I'm using ZF 1.7.1 for the record.

I'm trying to figure out the case sensitivity rules for Modules. We've been developing using the default module to this point, and there have been no problems.  But in creating a new module, we've discovered that in the URL the module name must reflect the capitalization of the module directory in the file system.

e.x.:

application/modules/resources/  =>
     http://devsite.com/resources/ brings up the index controller/action 
     http://devsite.com/Resources/ returns an exception: Invalid Controller Specified

application/modules/Resources =>
     http://devsite.com/resources/ returns an exception: Invalid Controller Specified
     http://devsite.com/Resources/ brings up the index controller/action 

I guess that I have two questions here:

1) Is this the expected behavior?
2) If so, is there a 'best practices' method of forcing case insensitivity on the module name in the URL?

Regards,

Jason Murray

没有评论: