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

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -