php - Zend Framework: How to attach other than default layout -
i have created module 'admin' . created layout admin module. how can permanently attach layout 'admin' module. can 1 suggest me , how can write code purpose. whether in bootstrap file ?
if module can add layout.phtml file module's layout/scripts/ folder.
if have different name layout.phtml admin.phtml simple add following in controller
$this->_helper->layout->setlayout('admin');
it should , check first module's layout folder , default folder.
Comments
Post a Comment