删除 URL 中的参数

delete parameters in URL

我有一些基本的理解问题。

如果我开始申请: http://localhost/cheyenne/public/ 我的开始 url 当然没有 post 参数 如果我使用 link 和 post 参数,例如编辑,我得到这个 URL http://localhost/cheyenne/public/arbeitskalender/edit/nr/2 仍然一切都很好 如果我使用另一个 link 我的导航,我的应用程序的不同部分,前面的参数如下 http://localhost/cheyenne/public/bibliothek/edit/nr/2/buchnr/2

在某种程度上我必须删除 post 参数,我该怎么做?有没有可能,每次我拿我的导航菜单?

我认为这无关紧要,但这里的导航部分超出了我的 layout.phtml:

<div id="navigation">
        <ul>
                <li><a href="<?php echo $this->url(array('controller'=>'arbeitskalender', 'action'=>'index'));?>">Arbeitskalender</a></li>
                <li><a href="<?php echo $this->url(array('controller'=>'bibliothek', 'action'=>'index'));?>">Bibliothek</a></li>
                <li><a href="<?php echo $this->url(array('controller'=>'schwestern', 'action'=>'index'));?>">Schwestern</a></li>
        </ul>
    </div>

您要查找的选项是 "Reuse Matched Parameters",如此处所述

http://framework.zend.com/manual/current/en/modules/zend.view.helpers.url.html

您可以选择不重用这些参数,但是,在做出该选择之前,我会仔细研究您的路由策略并确保您的资源和子资源以您希望支持的逻辑方式组织转发。