Zend_Controller_Router_Exception: “xyz” is not specified

后端 未结 6 1564
野趣味
野趣味 2020-12-11 07:23

I have a problem in my current Zend Framework application.

In my Bootstrap I register these routes:

protected function _initRouter()
{
    $this->         


        
6条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-11 08:03

    I see here two solutions:

    1. You can set a default value for your route parameters in the _initRouter(), but it may be not what you want (eg. in this case this route may be used when you do not want)

    2. You can specify the route parameters in the navigation.xml (the params property). If you don't want to set them fixed, you will need to write PHP code for the generation of the navigation xml.

提交回复
热议问题