magento获取判断当前页或句柄handles

常用:
产品页 catalog_product_view
目录页 catalog_category_view
主页 cms_index_index
site map页 catalog_seo_sitemap_category
注册页 customer_account_login

判断这些页为我们在代码中进一步控制一些行为提供方便,
那到底如何才通获得当前页的,语法如下:

echo $this->getRequest()->getRouteName().'_'.$this->getRequest()->getControllerName().'_'.$this->getRequest()->getActionName();
原文地址:https://www.cnblogs.com/liuxgnu/p/3535111.html