ZF-9258: Possibility to add multiple module directories on Zend_Application_Resource_FrontController

Issue Type: Patch Created: 2010-02-24T15:01:06.000+0000 Last Updated: 2011-02-12T12:09:43.000+0000 Status: Resolved Fix version(s): - 1.11.1 (30/Nov/10)

Reporter: João Paulo de Oliveira Faria (jpfaria) Assignee: Ryan Mauger (bittarman) Tags: - Zend_Application_Resource

Related issues: Attachments:


class Zend_Application_Resource_Frontcontroller extends Zend_Application_Resource_ResourceAbstract { ... case 'moduledirectory': if (is_array($value)) { foreach ($value as $modulePrefix => $modulePath) { $front->addModuleDirectory($modulePath); } } else { $front->addModuleDirectory($value); } break; ... }


Posted by Raphael Dehousse (thymus) on 2010-07-14T23:41:16.000+0000

I totally agree on this bug. Furthermore, this behavior is set for controllerdirectory, so, why not for moduledirectory?

I had to write my own resource to be able to work with multiple modules directory. It's a good thing when you have a kind of "repository" of modules that you can plug in different applications.

Thank you in advance for integrating this into ZF :)

Best regards,

Raphaël Dehousse

Posted by João Paulo de Oliveira Faria (jpfaria) on 2010-09-08T11:55:13.000+0000

This improvement is really very important for my application. How do myself to solve?

class Zend_Application_Resource_Frontcontroller extends Zend_Application_Resource_ResourceAbstract { ... public function init() ... case 'moduledirectory': if (is_string($value)) { $front->addModuleDirectory($value); } elseif (is_array($value)) { foreach ($value as $module => $directory) { $front->addModuleDirectory($directory, $module); } } break; ... }

Posted by Ryan Mauger (bittarman) on 2010-11-18T13:48:59.000+0000

Commited to trunk in r23377, merged to release 1.11 in 23378

Posted by Ramon Henrique Ornelas (ramon) on 2011-02-12T12:09:42.000+0000

Assigned fix version to improvement Changelog.

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.