-- Jan Pieper <[EMAIL PROTECTED]> wrote (on Tuesday, 09 December 2008, 03:48 PM +0100): > today we thought about how to ignore case sensitivity for urls to > allow ~/Foo and ~/foo to load "Foo"-module. We tried to overwrite all > methods that returns uppercase module name to allow ignoring case > sensitivity but now we need to extend Zend_Controller_Front and it is > very complex because it is a singleton and without late static binding > I think we won´t get happy with overwriting it. > > There is already a jira ticket but the reporter modified the zend framework > code: > http://framework.zend.com/issues/browse/ZF-4119 > > So, is there a chance to disable case sensitive module names?
Not for the default use case. However, a couple things to note about your approach. First, you *can* extend Zend_Controller_Front; simply override the __construct() and getInstance() methods. Then, simply make sure that the first call to getInstance() is done on your extending class -- all subsequent calls to Zend_Controller_Front::getInstance() will then get an instance of your extending class. Second, you're looking at the wrong pieces of code anyways. You should be looking in the dispatcher and ViewRenderer, which is where resolution occurs (the former resolves the name to a class and path, the latter resolves it for view-related classes). -- Matthew Weier O'Phinney Software Architect | [EMAIL PROTECTED] Zend Framework | http://framework.zend.com/
