adding a Route to the a Router in Zend Framework

后端 未结 4 1837
隐瞒了意图╮
隐瞒了意图╮ 2021-02-11 11:06

I am using the mod-rewrite router.

I am trying to add a Route to the router that will convert the following url:
baseurl/category/aaa/mycontroller/myaction/param/v

4条回答
  •  傲寒
    傲寒 (楼主)
    2021-02-11 11:40

    $Router=$this->_front->getRouter();
    $CategoryRoute = new Zend_Controller_Router_Route('category/:category/:controller/:action/*');
    $Router->addRoute('category', $CategoryRoute);
    

    Try adding a start to specify the existence of extra params

提交回复
热议问题