Issues

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

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

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; ... }

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

Assigned fix version to improvement Changelog.