How to get the dispatched route name in Zend framework?

前端 未结 3 918
星月不相逢
星月不相逢 2020-12-31 02:42

Current state:

  • A router is loaded from xml file
  • two route name within the router are going to the same controller and action, for example: www-languag
3条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-31 03:22

    Zend_Controller_Front::getInstance()->getRouter()->getCurrentRoute()
    

提交回复
热议问题