Skip to content

Instantly share code, notes, and snippets.

@Alphabetus

Alphabetus/index.php

Last active Mar 16, 2020
Embed
What would you like to do?
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