Zend框架安装 - 需要澄清

Zend框架安装 - 需要澄清

问题描述:

I've seen lots of videos and instructions on how to install zend framework on wamp and other similiar local host environments. I've also seen lots of references, including here, that mention you don't need to 'install' zend, it just needs to be included in the php files to work.

As I think I understand it, installing zend on localhost environments will allow you to utilize certain tools that for example automate the creation of projects and gets the most out of the framework. I'm assuming that to then use these projects in a web host environment, you simply need to upload a specific project's files and ensure the zend files are in place and included in the directories.

Are my assumptions correct? I'm still trying to grasp the basics of this one and haven't found clarifications in my google searches.

我看过很多关于如何在wamp和其他类似的本地主机环境中安装zend框架的视频和说明。 我也看到很多引用,包括这里,提到你不需要'安装'zend,它只需要包含在php文件中就可以了。 p>

As 我认为 em>我理解它,在localhost环境中安装zend将允许您利用某些工具,例如自动创建项目并充分利用框架。 我假设在Web主机环境中使用这些项目,您只需上传特定项目的文件并确保zend文件就位并包含在目录中。 p>

我的假设是否正确? 我仍然试图掌握这个的基础知识,并没有在我的谷歌搜索中找到澄清。 p> div>

Everything you wrote is correct. It helped me to think of Zend Framework as a library of components rather than as a program you need to install. As long as your application has access to that library of components, Zend Framework is installed. This doesn't address any of the configuration tasks you'll need in Bootstrap and/or application.ini, but should clear up installation.

Regarding the automated creation of projects and project elements (controllers, actions, etc.) this feature is available via Zend_Tool and is typically used only during development, so it shouldn't come into play once you've ported from your localhost.

Automated creation of the projects is far not the main feature of Zend. The majority of the php frameworks are about providing the best infrastructure for complying to MVC design pattern, about object relational mapping, security enhancements etc.

And yes, the whole project tree is what you'd need to carry around for deployments.