still with the same error :S Bootstrap.php:
class Bootstrap extends Zend_Application_Bootstrap_Bootstrap { protected function _initPlugins() { $front = Zend_Controller_Front::getInstance(); $front->registerPlugin(new Plugin_Layout()); } } application/controllers/plugins/Layout.php: <?php class Plugin_Layout extends Zend_Controller_Plugin_Abstract { public function preDispatch() { $user = Zend_Auth::getInstance(); $role = $user->getIdentity()->role; $layout = Zend_Layout::getMvcInstance(); switch ($role) { case 'admin': $layout->setLayout('layout2'); break; case 'normal': $layout->setLayout('layout'); break; default: $layout->setLayout('layout'); break; } } } ?> I need to change something in the .ini file saying the path do the plugin? -- View this message in context: http://zend-framework-community.634137.n4.nabble.com/Change-layout-in-bootstrap-tp3475680p3481134.html Sent from the Zend Framework mailing list archive at Nabble.com. -- List: fw-general@lists.zend.com Info: http://framework.zend.com/archives Unsubscribe: fw-general-unsubscr...@lists.zend.com