ZF-9258: Possibility to add multiple module directories on Zend_Application_Resource_FrontController
Description
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; ... }
Comments
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.