How to get controller, module, action and router namein Magento?
Template Files:
$this->getRequest()->getControllerName();
$this->getRequest()->getActionName();
$this->getRequest()->getRouteName();
$this->getRequest()->getModuleName();
Class Files :
Mage::app()->getRequest()->getControllerName();
Mage::app()->getRequest()->getActionName();
Mage::app()->getRequest()->getRouteName();
Mage::app()->getRequest()->getModuleName();