Just you need to replace one line of code in your controller
where you want to change the layout of the page if you are not
able to do from xml through setlayout.
where you want to change the layout of the page if you are not
able to do from xml through setlayout.
Replace
$this->loadLayout();
with
$this->loadLayout()->getLayout()
->getBlock(‘root’)->setTemplate(‘page/1column.phtml’);
(Visited 77 times, 1 visits today)