One way to achieve this is to have separate bootstrap index.php files,
i.e /admin/index.php which would then specify a specific config file
to use which merges with the main (default module) config. Both
config.ini specify the default module, and because of merging the two
configs setting the default module to be admin in the admin config.ini
will allow you to determine which specific controller directory to
specify.

            $module = isset($options['module']) ? $options['module'] :
'default';

            $frontController = Zend_Controller_Front::getInstance();

            
$frontController->setControllerDirectory(APPLICATION_PATH.'/modules/'.$module.'/controllers',
$module)

The module Directory is not specified since it will read admin, and
default as available modules to bootstrap.


If you google, Matthew mentioned another method that someone used
whereby using a controller plugin to only call iniActive methods for
the current module - but for me that still meant loading a module
bootstrap class which would wouldn't be required in this particular
usage.

Reply via email to