Revision: 53541
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at November 26, 2011 07:14 by zoranmk
Initial Code
//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));
Initial URL
Initial Description
Snippet for getting the layout handles in Magento on each request, helpful for front-end developers.
Initial Title
Log down all loaded layout handles in Magento on each request
Initial Tags
php, xml, layout, magento
Initial Language
PHP