问题描述
限时送ChatGPT账号..我也是 Zend 和 Ubuntu 的新手.
虽然我已经在我的 ubuntu 系统上配置了 Zend.但问题是,在每个集合中,我都必须将 Zend 库复制到我的项目/库/.. 否则会出现require_once(): Failed opening required 'Zend/Application.php"错误.
是否有必要每次将我的 Zend 库复制到我的项目/库位置.我不能从我的/opt/Zend/library/Zend 全局使用它,我把我的 Zend 库文件夹放在那里.我需要进行哪些更改才能在所有项目中全局使用它.请帮忙.
解决方案您可以将 Zend Framework 源代码放在 Linux 系统上的任何文件夹中,然后只需将 _source_dir_/library/Zend 符号链接到任何项目的库/Zend.>
如果需要,您也可以通过这种方式在不同的 ZF 版本(例如 1.12.x、1.11.x)之间轻松切换.
ln -s _SOURCE_DIR_/library/Zend _TARGET_DIR_/library/Zend
I am completely new with zend and Ubuntu as well.
Though I have configured Zend on my ubuntu system. but issue is that at each set I have to copy my Zend library to my project/library/.. else it arises 'require_once(): Failed opening required 'Zend/Application.php' error.
Is it necessory to copy each time my Zend library to my project/library location. Can't I use it globlally from my /opt/Zend/library/Zend where exactly I have put my Zend Library folder. What changes I need to make to use it globally for all project. Please help.
解决方案You can place Zend Framework source in any folder on your linux system, then just make symlink from _source_dir_/library/Zend into any project's library/Zend.
You can easy switch between different ZF versions (eg 1.12.x, 1.11.x) such way also if you need this.
ln -s _SOURCE_DIR_/library/Zend _TARGET_DIR_/library/Zend
这篇关于Ubuntu 上的 Zend 配置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
更多推荐
[db:关键词]
发布评论