2026 Executive BenchmarkMid-Market Enterprise Modernization: How leaders across unify Commerce, Odoo ERP & AI in 90 days.
MAGENTO COMMERCE

Get current module name, route name, controller name and action name Magento :

Anywhere in controller or even with template files. Mage::app()->getRequest()->getActionName(); // return action name Mage::app()->getRequest()->getRouteName(); // return routes na...

Akshar Group Technologies
Dec 25, 2020
1 min read
Verified Source

Anywhere in controller or even with template files.

code
Mage::app()->getRequest()->getControllerName(); // return controller name
Mage::app()->getRequest()->getActionName(); // return action name
Mage::app()->getRequest()->getRouteName(); // return routes name
Mage::app()->getRequest()->getModuleName(); // return module name
Share this playbook
LET'S BUILD WHAT'S NEXT

What's Holding Your Business Back?

Tell us where you want to go, what's getting in the way, and we'll help you figure out the technology to get there.

No sales pitch. Confidential strategic advisory.