Created
March 18, 2016 20:54
-
-
Save leite/5ad6f0eefdca7ee20d22 to your computer and use it in GitHub Desktop.
debug layout inside template/view in magento
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$req = Mage::app()->getRequest(); | |
error_log(sprintf( | |
"\nRequest: %s\nFull Action Name: %s_%s_%s\nHandles:\n\t%s\nUpdate XML:\n%s", | |
$req->getRouteName(), | |
$req->getRequestedRouteName(), //full action name 1/3 | |
$req->getRequestedControllerName(), //full action name 2/3 | |
$req->getRequestedActionName(), //full action name 3/3 | |
implode("\n\t", $this->getLayout()->getUpdate()->getHandles()), | |
$this->getLayout()->getUpdate()->asString() | |
)); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment