Hi guys Im using the following structure for a multi-module project in Phalcon
[modules]
[module1]
[controllers]
[models]
[views]
[module2]
[controllers]
[models]
[views]
[module-n]
[controllers]
[models]
[views]
I have registered only Module 1 and Module 2 in my bootstrap index.php file. Like this:
$this->registerModules(array
(
'Module1' => array(
'className' => 'Modules\Module1\Module',
'path' => '../modules/module1/Module.php'
),
'Module2' => array(
'className' => 'Modules\Module2\Module',
'path' => '../modules/module2/Module.php'
)
));
Now, my default module is Module 1 . How do i use Controllers of module n(this module has not been registered). Is there any dynamic way of registering modules?