beeplogic's avatar

View Merged Magento Layout XML

Here's a quick way to view the Layout XML that is generated in magento, it can be added at the end of index.php.

<?php
Mage::app()->getLayout()->getNode()->asNiceXml('/tmp/foo');

It's a quick and easy way to verify custom layout changes have been merged in, an XML file will be saved in the specified path.