Zend:如何将不同的控制器嵌套到一个大控制器中?
Zend Framework 将不同的控制器操作嵌套到一个大操作中的(最佳)方法是什么?
我该如何解决以下情况:
我的主大视图中的链接调用另一个视图,我可以在其中选择特定值并在选择主视图并预填充此选定值后自动返回?
What are (the best) approaches for the Zend Framework to nest different controllers actions into one big one?
And how would I solve the following situation:
A link in my main big view calls an other view where I can select a specific value and come back automatically after selecting to the main view and pre-filling this selected value?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以使用 ActionStack 帮助程序一次性运行多个操作(就在那里,稍微低一点)。我不确定你的第二个问题。
You can run several actions in one shot using the ActionStack helper (it's there, a little down). I'm not sure about your second question.
您可以通过执行以下操作在当前控制器/操作的视图中执行其他控制器/操作组合:
这就是我们在布局中包含的内容,以在每个页面上呈现公共标题,而不必在每个控制器的操作中包含该准备工作,并且每个布局 phtml 文件中的布局逻辑。这也适用于常规视图。
You can execute additional controller/action combinations in the current controller/action's view by doing something like this:
This is what we include in our layouts to render a common header on each page without having to include the prep for that in each controller's action and the layout logic in each layout phtml file. This will work in a regular view as well.