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