使用 Zend Navigation 创建子菜单
是否可以在 Zend Navigation 中创建子菜单?
此时我的 application.ini 中已包含此内容:
resources.navigation.pages.indexHome.label = "Home"
resources.navigation.pages.indexHome.controller = "index"
resources.navigation.pages.indexHome.action = "index"
resources.navigation.pages.indexLogin.label = "Login"
resources.navigation.pages.indexLogin.controller = "login"
resources.navigation.pages.indexLogin.action = "index"
resources.navigation.pages.indexRegister.label = "Register"
resources.navigation.pages.indexRegister.controller = "login"
resources.navigation.pages.indexRegister.action = "register"
resources.navigation.pages.indexDisclaimer.label = "Disclaimer"
resources.navigation.pages.indexDisclaimer.controller = "disclaimer"
resources.navigation.pages.indexDisclaimer.action = "index"
resources.navigation.pages.indexAbout.label = "About"
resources.navigation.pages.indexAbout.controller = "about"
resources.navigation.pages.indexAbout.action = "index"
但我希望在帐户的子菜单中登录和注册。
这可能吗?
谢谢
Is it possible to create a submenu in Zend Navigation?
At this time i've got this in my application.ini:
resources.navigation.pages.indexHome.label = "Home"
resources.navigation.pages.indexHome.controller = "index"
resources.navigation.pages.indexHome.action = "index"
resources.navigation.pages.indexLogin.label = "Login"
resources.navigation.pages.indexLogin.controller = "login"
resources.navigation.pages.indexLogin.action = "index"
resources.navigation.pages.indexRegister.label = "Register"
resources.navigation.pages.indexRegister.controller = "login"
resources.navigation.pages.indexRegister.action = "register"
resources.navigation.pages.indexDisclaimer.label = "Disclaimer"
resources.navigation.pages.indexDisclaimer.controller = "disclaimer"
resources.navigation.pages.indexDisclaimer.action = "index"
resources.navigation.pages.indexAbout.label = "About"
resources.navigation.pages.indexAbout.controller = "about"
resources.navigation.pages.indexAbout.action = "index"
But I want the login and register in a submenu of account.
Is that possible?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
要添加子菜单,您应该可以通过添加
Try that... 来完成,它基本上是在寻找与 XML 配置相同的结构。
To add a submenu, you should be able to do it by adding
Try that... It's basically looking for the same structure as an XML configuration.