Hey there guys, this is my first question on Stack Overflow. I figured this website has helped me alot so I give it a shot as well.
I'm currently working on multiple Zend Framework applications that need to inherit modules from a common module directory. The file structure used is the conventional method (omitting actual names and references to protect application structure):
/application1
/application
/modules
/module1
/module2
/module3
/...
/application2
/application
For now i've tried manually autoloading every single module in the bootstrap of Application2 like so:
$moduleLoader = new Zend_Application_Module_Autoloader(
array('namespace' => 'Prefix', 'basePath' => path_to_application1_application_modules_modulename)
);
$autoloader->pushAutoloader($moduleLoader);
This works, but as you can imagine this becomes quite a tedious work. Now I've also tried setting the common module directory in the FrontController like so:
$frontController = Zend_Controller_Front::getInstance();
$frontController->addModuleDirectory(path_to_application1_application_modules);
But this doesn't seem to Bootstrap any of the modules. Am I forgetting about something important? Your help is much appreciated!