From the Bootstrap.php file, you can do something like this:
protected function _initLayoutName() {
If you want to use a different layout for another module, you need to register the plugin in Bootstrap and include the plugin in the following code:
class Application_Plugin_LayoutSwitcher extends Zend_Controller_Plugin_Abstract { public function dispatchLoopStartup(Zend_Controller_Request_Abstract $request) { $module = $request->getModuleName();
Inside your .ini application, you can do this to install a script layout:
resources.layout.layout = "layoutname"
However, this will not work for each layout. If you need to change the layout based on the module, you will have to use the plugin, but you can use the parameter in application.ini to set the default layout name.
source share