没有 zend 工具的 Zend 框架 [英] Zend Framework without the zend tool

查看:30
本文介绍了没有 zend 工具的 Zend 框架的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚开始学习 zend 框架,我想知道的是,是否可以在不接触 zend 工具的情况下创建控制器和动作?在创建新项目或新控制器时,我认为 zend 工具是一个很好的工具,但对于创建操作而言,它只是额外的工作.是否也可以将一个动作变量输出到关联的控制器视图而不是它自己的视图中?

I just started learning the zend framework and what im wondering is , is it possible to create controllers and actions without ever touching the zend tool? I see the zend tool a great tool when creating new projects or a new controller but for creating actions its just extra work. Is it also possible to output an actions variables into the associated controllers view rather than its own view?

谢谢

推荐答案

如果您不想要,您实际上并不需要 Zend Tool.我发现它对创建初始项目很有帮助,但除此之外我几乎没有使用它.

You don't really need Zend Tool if you don't want. I find it helpful for creating the initial project but beyond that I hardly ever use it.

Zend_View 由 Zend_Controller_Action 公开,但它独立于特定的控制器动作.如果您从特定操作将变量分配给视图,并呈现不同的视图或调用另一个操作,则先前设置的视图变量仍然存在.我想这就是你要问的.

Zend_View is exposed by the Zend_Controller_Action, but it is independent of the specific controller action. If you assign variables to the view from a particular action, and render a different view, or call another action, the previously set view variables are still there. I think that was what you were asking.

这篇关于没有 zend 工具的 Zend 框架的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆