用于 Eclipse PDT 的 Zend 框架插件
我安装了 eclipse PDT IDE 版本 1.2.0。我将它与 Dojo 一起使用来开发非常有趣的 Ajax 应用程序。现在我想在我的 eclipse IDE 中启用 Zend 框架。我怎样才能做到这一点。经过一番谷歌搜索后,我尝试了以下方法。
1.)下载Zend框架并解压到我的C目录。 中添加了以下路径
2.) 在我的 php.ini 文件include_path = ".;C:\ZendFramework-1.10.5\library"
3.) 在 Apache 的 httpd.conf 文件中更改了以下行以支持 .htaccess 文件
AllowOverride None 到AllowOverride All
重新启动Apache 一次并进行测试以查看这是否有任何效果。我通过尝试创建一个新的 PHP 项目并查看项目文件的结构进行了测试。
问题是
1.) 我如何将 zend 框架包含到已经存在的 eclipse pdt ide 中。
2.)有没有可以直接添加的插件或者我可以使用eclipse的添加软件功能。如果是,我必须提供什么 URL 才能下载软件
3.) 最后,我如何测试以确保 zend 框架已正确安装,
感谢您的帮助
I have eclipse PDT IDE version 1.2.0 installed. I have used it together with Dojo to develop very interesting Ajax applications. Now i want to enable the Zend framework within my eclipse IDE. How can i do this. After some googling, i have tried the following.
1.) downloaded the Zend framework and unzipped to my C directory.
2.) added the following path in my php.ini file
include_path = ".;C:\ZendFramework-1.10.5\library"
3.) changed the following line in the httpd.conf file in Apache to support .htaccess files
AllowOverride None to AllowOverride All
Restart Apache once and tested to see if this had any effect. I tested by trying to create a new PHP project and take a look at the structure of the project files.
The question is
1.) how can i include zend framework to an already existing eclipse pdt ide.
2.) is there a plugin that can be added directly or can i use the add software capabilities of eclipse. If yes, what URL do i have to supply for software download
3.) finally, how do i test to make sure that the zend framework has been properly installed
thanks for your help
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我建议将 ZF 路径设置为 ide 的库(首选项 > PHP > PHP 库 > 新建 > 添加外部文件夹)。然后对于您的项目:侧边栏项目上的人民币>属性> PHP 包含路径 >添加库>用户库>选择您的图书馆。
我全职使用 Zend 进行开发,这种方式是迄今为止最好的方式;)(如果您不想为 ZendStudio 付费;)
I suggest setting ZF path as library for your ide (Preferences > PHP > PHP Libraries > New > Add External Folder). And then for your project: RMB on project in sidebar > Properties > PHP Include Path > Add Library > User Library > select your library.
I develop full time in Zend and this way is the best so far ;) (if you don't want to pay for ZendStudio ;)
1) 您可以通过配置其包含路径来将对 Zend Framework 的引用添加到 Eclipse 中的任何项目。
2) 我想说的是,大多数为 Eclipse 构建的自定义 Zend 支持已经从 Zend 的人员转移到了 Zend Studio For Eclipse 中。当然,这需要花钱,但您可以免费下载并玩它。当然,一旦您的项目的包含路径中有 ZF,它将显示在代码完成和文档片段等中。
3) 尝试对 Zend Framework 文件夹中的某些内容使用 require_once。如果出现错误,则表明您的 PHP 包含路径未正确设置。
1) You can add references to the Zend Framework to any project in Eclipse by configuring its include path.
2) I'd say that most of the custom Zend support built for Eclipse has gone into Zend Studio For Eclipse, from the folks at Zend. Of course, that costs money, but you're able to download and play with it for free. Of course, once you have ZF in your project's include path, it will show up in code completion and documentation snippets, etc.
3) Try using require_once on something in the Zend Framework folder. If you get an error, your PHP include path isn't properly set up.