问题
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
回答1:
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 ;)
回答2:
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.
来源:https://stackoverflow.com/questions/3085030/zend-framework-plugin-for-eclipse-pdt