To check your current page and compare as per you requirement, you need to check three values router name, controller name, and action name:

$route =  Mage::app()->getFrontController()->getRequest()->getRouteName();

$ctrl =  Mage::app()->getFrontController()->getRequest()->getControllerName();

$act =  Mage::app()->getFrontController()->getRequest()->getActionName();
Your Answer
Login
Enter email and password to comment or answer
Not the answer you are looking for? Browse other questions tagged or ask your own question.