0

The problem is when generating Zend_Navigation menu in the view all links have "/projects/add/" href. At the same time when "/projects/list/" is active all links are correct. The same if I deleted this route - all links are ok.

So, while "/projects/add/" href is active the problem is.

Part of code from bootstrap:

        $frontController = Zend_Controller_Front::getInstance();
        $router = $frontController->getRouter();

        $router->addRoutes(array(
            'AddProject' => new Zend_Controller_Router_Route('/projects/add/:key', array('module' => 'default', 'controller' => 'projects', 'action' => 'add', 'key' => '')),
        ));
4

1 回答 1

1

我在这里找到的答案

我刚刚在所有以前没有的菜单项中添加了默认值。就是这个...))

于 2011-09-07T14:48:02.680 回答