Skip to content

Instantly share code, notes, and snippets.

@Alphabetus
Last active March 16, 2020 14:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Alphabetus/e521fd19b78bdb8867967f26d5a220ba to your computer and use it in GitHub Desktop.
Save Alphabetus/e521fd19b78bdb8867967f26d5a220ba to your computer and use it in GitHub Desktop.
get handlers for Magento Debugging on index.php
/**
* NOTE:
* Retrieves the handlers used by Magento on frontend.
* Example:
* array(8) { [0]=> string(7) "default" [1]=> string(8) "cms_page" [2]=> string(13) "STORE_default" [3]=> string(29) "THEME_frontend_custom_default" [4]=> string(15) "cms_index_index" [5]=> string(22) "page_two_columns_right" [6]=> string(19) "customer_logged_out" [7]=> string(8) "cms_menu" }
**/
var_dump(Mage::app()->getLayout()->getUpdate()->getHandles());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment