I got it working, but without extending standard dispatcher. I extended following classes:
- Zend_Controller_Request_Http::getModuleName(): lower result - Zend_Controller_Front::addModuleDirectory(): lower $module - Zend_Controller_Action_Helper_ViewRenderer::getFrontController(): use own front controller ...but I think your solutions is quite better. I´ll take a look to realize it with only the ViewRenderer and Dispatcher. Thanks for your thoughts :-) -- Jan -------- Original-Nachricht -------- > Datum: Tue, 9 Dec 2008 10:49:15 -0500 > Von: Matthew Weier O\'Phinney <[EMAIL PROTECTED]> > An: [email protected] > Betreff: Re: [fw-general] ignore case sensitivity for urls > -- 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/ -- Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger
