I need to get route name from url in zend framework.
I want to pass URL as parameter to a method that will return route name of the URL.
Using Zend_Controller_Front::getInstance()->getRouter()->getCurrentRouteName() I can get the currrent route name.
Zend doesn’t have any direct method for this. But you can get it in this way..