public function _construct(){
$this->loadLayout();
$this->renderLayout();
}
public function indexAction(){
$this->loadLayout();
$this->renderLayout();
echo "see My Controller";
}
When I am call layout in index controller the it will display the my cuttent theme. and when I call in _construct then it's display magento default theme. why? can you explain ? how to set my current theme in _construct() function magento extension
Mage::app()->loadArea($this->getLayout()->getArea());beforeloadLayout– Marius Aug 28 '14 at 07:55