向 Zend_Navigation 添加参数
我对 Zend_Navigation 有疑问,希望能得到一些指导。
我正在将 Zend_Navigation 添加到遗留应用程序,如[此处]所述。1
我不确定的是从xml文件加载数据后如何向导航菜单添加参数。
我想要做的是从 url 中获取 2 个标识参数并将它们添加到 Zend_Navigation 中,以便它们包含在面包屑栏等内容中,这样,如果用户选择面包屑中的前一项,它们就会返回正确的结果url 中的参数。
我认为参数需要在操作级别而不是控制器上设置。
任何帮助将不胜感激。
非常感谢。
I have a problem with Zend_Navigation that I am hoping for a little guidance on.
I'm in the process of adding a Zend_Navigation to a legacy app as described [here on SO].1
The thing that I am not sure of is how to add parameters to the navigation menu after the data is loaded from the xml file.
What I want to do is get 2 identifying parameters from the url and add them to the Zend_Navigation so that they are included in things such as the breadcrumb bar, so that if a user selects the previous item in the breadcrumb they are returned with the correct params in the url.
The parameters, I believe need to be set at the Action level rather than the controller.
Any help would be appreciated.
Many thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论