25-06-2011

Zend Framework Change layout file from controller action

To choose another layout file inside your controller all you need to do is invoke the layout helper like so:

$this->_helper->layout->setLayout('front');
 

Now the layout file is front.phtml

Comments:

Your comment:

»
Alex 28/07/2011, 12:30 pm
Have nice day! Much useful information, nice design, but this color hurts your eyes.

 

[x]