Wednesday, January 4, 2012

Change layout file

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

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

Now the layout file is second.phtml

No comments:

Post a Comment