Zend Framework 库最佳实践? [英] Zend Framework library best practices?

查看:26
本文介绍了Zend Framework 库最佳实践?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最好让每个应用程序都有自己的 ZF 库代码副本,还是将代码放在驱动器上的一个区域中并确保它在包含路径上?让每个应用都有自己的副本似乎是避免任何部署问题的最佳方式(例如,在 Windows 上开发并在 Linux 上部署).

Is it best to have each application with its own copy of the ZF library code, or have the code in one area on the drive and just make sure it's on the include path? Having each app with its own copy seems like the best way to avoid any deployment issues (for instance, developing on Windows and deploying on Linux).

我使用 Netbeans 作为我的 IDE,我注意到在创建新的 Zend 项目时,它不会复制文件(库文件夹是空的,因为它应该包含 Zend 文件夹及其下的所有子文件夹).

I am using Netbeans as my IDE and I notice that it does NOT copy the files over (library folder is empty when it should have the Zend folder with all the subfolders under that) when a new Zend project is created.

推荐答案

如果你想升级到更新的版本,你必须在所有安装上都这样做.. ;)

And if you want to upgrade to a newer version, you 'd have to do it on all installs.. ;)

我为框架使用一个代码库,所有应用程序都从那里引用它.

I use one codebase for the framework and all apps reference it from there.

这篇关于Zend Framework 库最佳实践?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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