Don't use a parent controller. This is a bad idea! Use a plugin:
http://framework.zend.com/manual/en/zend.controller.plugins.html
This blog post will also help:
http://weierophinney.net/matthew/archives/234-Module-Bootstraps-in-Zend-Framework-Dos-and-Donts.html
Am 27.04.2011, 17:04 Uhr, schrieb benoit <[email protected]>:
I don't know if there is a way in bootstrap, but you can create a
ParentController, which extends Zend_Controller_Acion, and your
application
controllers extend ParentController.
In parentController's preDispatch hook, you can do:
public function preDispatch() {
if (Zend_Auth::getInstance()->hasIdentity()):
$this->_helper->layout->setLayout('layout2');
}
}
--
View this message in context:
http://zend-framework-community.634137.n4.nabble.com/Change-layout-in-bootstrap-tp3475680p3478403.html
Sent from the Zend Framework mailing list archive at Nabble.com.
--
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]