ZF-3034: Module name mapping from URI to directory

Issue Type: Improvement Created: 2008-04-03T10:17:01.000+0000 Last Updated: 2008-05-22T17:47:05.000+0000 Status: Resolved Fix version(s): - 1.5.2 (15/May/08)

Reporter: Eric Yao (sourceboy) Assignee: Matthew Weier O'Phinney (matthew) Tags: - Zend_Controller

Related issues: - ZF-3312



Not sure if case-sensitive comparison is an intentional behavior; if it is, would it make sense to add an extra argument to allow mapping the module name case-insensitively from the URI to the physical module directory on the file system?

<pre class="highlight">
$zcf = Zend_Controller_Front::getInstance();

$zcf->setParam('noViewRenderer', true);
$zcf->setParam('prefixDefaultModule', true);

<pre class="highlight">
|-- default/
|   |-- ErrorController.php
|   `-- IndexController.php
`-- module1/
    `-- IndexController.php

http://somewhere/module1 hits the IndexController in the module1 directory http://somewhere/Module1 hits the ErrorController in the default module directory

Some users type everything capitalized, and since MODULE1 !== module1 (I'm gussing isValidModule() returns false); the request doesn't go to the intended controller.

If this is an intentional behavior; what's the best way to overcome this? Create a custom dispatcher, or perhaps this can be worked around by configuring the router?



Posted by Wil Sinclair (wil) on 2008-04-18T16:21:27.000+0000

Please evaluate and categorize/assign as necessary.

Posted by Matthew Weier O'Phinney (matthew) on 2008-04-22T13:05:35.000+0000

Scheduling for next mini release.

Posted by Matthew Weier O'Phinney (matthew) on 2008-05-08T07:10:13.000+0000

Resolved in trunk and 1.5 release branch as of r9408

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.