Another way to Get Current page layout in Magento

Saturday, 4. February 2012

Here is a little snippet for getting the current page layout in Magento

echo str_replace(array('page/','.phtml'),array('',''),$this->getLayout()->getBlock('root')->getTemplate());

enjoy!

Tags: .

Leave a Reply

You must be logged in to post a comment.