Wednesday 4 June 2014

Adding A Layout Handle From A Controller:

Here is the way to go…….

<pre>$update = $this->getLayout()->getUpdate();
$update->addHandle('default');
$this->addActionLayoutHandles();
$update->addHandle('your_handle');
$this->loadLayoutUpdates();
$this->generateLayoutXml();
$this->generateLayoutBlocks();
$this->_isLayoutLoaded = true;
 
reference: http://jaseir.com/magento/adding-a-layout-handle-from-a-controller/

No comments:

Post a Comment