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++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -