ZF-6244: Wrong load module controller directory from config

Issue Type: Bug Created: 2009-04-09T00:32:50.000+0000 Last Updated: 2009-04-17T06:07:24.000+0000 Status: Resolved Fix version(s): Reporter: Eugene Myazin (meniam) Assignee: Matthew Weier O'Phinney (matthew) Tags: - Zend_Application

Related issues: Attachments:



            case 'controllerdirectory':
                if (is_string($value)) {
                } elseif (is_array($value)) {
                    foreach ($value as $module => $directory) {

--> $front->setControllerDirectory($directory, $module); <-- } }


Selected method replace previous defines. May be replace it to addControllerDitectory?


Posted by Matthew Weier O'Phinney (matthew) on 2009-04-17T06:07:08.000+0000

The front controller's setControllerDirectory() method allows passing two arguments, a directory, and the module to which it maps; if the module provided matches an existing one, it will overwrite that value.So, to prevent this, the array passed should be a set of module/directory pairs, with unique module names.

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.