You can change page layout by adding:
$layout = '2columns-left'; $this->pageConfig->setPageLayout($layout);to your block's constructor.
$layout = '2columns-left'; $this->pageConfig->setPageLayout($layout);to your block's constructor.
$this->loadLayout(); echo '<pre>'; print_r($this->getLayout()->getUpdate()->getHandles()); echo '</pre>'; exit;The result will be something like that:
Array ( [0] => default [1] => STORE_default [2] => THEME_frontend_default_default [3] => catalog_category_view [4] => customer_logged_out )Then magento merges all layout updates for handles in the above array to one xml file. To show this file you have to write in controller (at the beginning of method):
header('Content-type: text/xml'); $this->loadLayout(); echo $this->getLayout()->getNode()->asXML(); exit;