Return to Snippet

Revision: 53541
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