Log down all loaded layout handles in Magento on each request
Snippet for getting the layout handles in Magento on each request, helpful for front-end developers.
Copy this code and paste it in your HTML
//Mage_Core_Model_Layout model
$layout = Mage::getSingleton('core/layout');
//Get handles array with Mage_Core_Model_Layout_Update model
$handles = $layout->getUpdate()->getHandles();
//Log the handles
Mage
::log('Layout handles: '.print_r($handles, true));
Report this snippet
Comments
Subscribe to comments