Zend_Layout in ZF1

To get the layout instance in a controller:
$layout = $this->_helper->layout()->setLayout('layoutname');

To get the layout instance in an action:
$layout = $this->_helper->layout()

 

Share: