I have PHP project and I am using Zend Framework. There is a library folder with Zend Framework and Doctrine. I would like to have autocompletion for Zend Framework classes, but I don't want to have "todo" things in Tasks window and I don't want to show results from this directories when I am performing searching.
How to configure Eclipse for that? I am using Helios release.
Move these libs out of the project folder, then add them as external Libraries: Project Properties -> PHP Include Path -> Libraries -> Add Library...
Related
I am begining a project in PHP that needs a framework. I've looked in vain for how to install either Symfony or Zend plugin for Eclipse, my IDE.
Any useful links or indications, please ?
http://symfony.dubture.com/installation/
But the best support Symfony in PhpStorm, look at the gifs: http://plugins.jetbrains.com/plugin/7219?pr=phpStorm
I also use PHP Storm at work but I'm just too cheap to buy it for home, so I use Eclipse with the Symfony plug-in! You can download it from the Eclipse marketplace for free, though it is only for Symfony 2.0, Symfony 2.5 is recognized, there are just a few features missing. I found that it still can be useful for code hinting and many Symfony-related helpers still pop up. It beats no helpers or hinting but it does lack many intuitive and time-saving features found in PHP Storm.
Anyway, here's the link directly from the Eclipse plug-in page: http://marketplace.eclipse.org/content/symfony-plugin
If you have Eclipse open, you can even just drag and drop the "Install" icon directly onto Eclipse and it should install automatically. Best of luck to you, #sk001!
I've found a solution.
Either for Zend or Symfony, to use it in eclipse PDT, you need first to download it from the official web site (zend's latest download page, Symfony's download page). Then, add the library to eclipse (Window -> Preferences -> PHP -> PHP Libraries and then new, navigate to the downloaded directory). Finally, after creating the project, right-click on it, Include Path -> Configure Include Path -> Add Library -> Choose User Library then next and select the needed libraries.
For Yii framework, you need to install the Yiiclipse plugin for your eclipse PDT.
I hope it'll help somebody.
I have eclipse 3.7.2 to work on PHP projects that are on remote Linux servers that can be accessed by SSH.
I installed eclipse RSE (Remote System Explorer) and I used it to add a remote project and configured it as a PHP project.
best practices for Zend Framework 2 projects is to include the used Zend Framework version within the sources of the application, but what happens then is that whenever I reopen eclipse it tries to build the project and validate the entire zend framework directory.
how can I choose that the auto builder will ignore that directory since it's not something that I modify. in general I have no idea why it needs to validate that directory every time and it does not check for md5 on the directory content before trying to validate every time. but it this can't be fixed, i need to ignore the entire zend framework directory foom auto building.
using Eclipse 3.7.2 with PHP plugin.
using Zend Framework 2.0 beta4 with basically the skeleton application and modules that are provided from the zend framework site.
thank you! :)
In the latest ZendSkeletonApplication, you'll see in index.php that you can place ZF2 outside of the project as long as you set the ZF2-PATH environment variable.
it seems that it's possible to do that.
i just need to right click on the directory i want to exclude from auto-building.
then to go to Build Path => Exclude.
this excludes the directory from auto-building and resolves the issue.
I'm reading Reference Guide::Create Your Project. And it's written there:
In order to create your project, you must first download and extract Zend Framework.
After you have installed Zend Server, the Framework files may be found
under C:\Program Files\Zend\ZendServer\share\ZendFramework on
Windows. The include_path will already be configured to include Zend
Framework.
I didn't download Zend Framework or installed Zend Server (I have XAMPP installed with Apache and have localhost and can load php files in browser. I don't need any more server, I think). I just downloaded and instaled Zend Studio 9 and after the instalation I went this way:
File --> New --> Example...
and chose Zend Framework Example Project and named my project "zend_project_example".
Then it was written that somthing was being instaled and it took quite a long time. Then I got this tree in the PHP Explore folder. And I even opened the Controller code from Zend Framework Library:
So it seems I have ZF, but I don't have anything in:
C:\Program Files\Zend\ZendServer\share\ZendFramework.
In fact I only have Zend Studio 9 folder threre: C:\Program Files\Zend\Zend Studio 9.0.2.
No any \ZendServer\share\ZendFramework
And in the Reference it is written:
Open a terminal (in Windows, Start -> Run, and then use cmd). Navigate
to a directory where you would like to start a project. Then, use the
path to the appropriate script, and execute one of the following:
% zf create project quickstart
I doesn't work for me. I can't do any steps farther in the Reference Guide. What should I have to solve and what should I have to do next to follow the Referance right way?
Thank you.
Zend Studio is just an IDE - an environment which is supposed to make developer's life easier. You need a server to run your projects on localhost. You quoted
After you have installed Zend Server,
and you wrote
I didn't download Zend Framework or installed Zend Server,
You can't expect the tutprail to work if you don't do what it says.
http://www.zend.com/en/downloads/
this is to download link for zend server and which would you like preferred you choose and you save manually and double click on setup file easy to install on your system
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
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) 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.
I am just trying to test out the new Zend Studio 7.2, and in the beginning I was able to create proper project files just fine, but for some reason, not it doesn't want to create them I just receive empty files, plus some "error icons" on top of the files.
I have Zend Server (Community Edition) installed and trying to see if that will help the problem, but it too doesn't seem to be helping.
Things I have done to try and solve the problem:
Re-Install the software
File -> New -> New Zend Framework Project
Create project on local server
Create project in workspace
Create project at existing location
Changing the project layout from "Default project structure" to Zend Framework and Dojo structure, just to see if that would kick something into gear. But no go.
I am at a loss, I would like it if Dreamweaver was smart with Zend Framework but it isn't from what I can tell. So I want to try this.
Is there any suggestions as why this might be happening?
Dreamweaver CS5 was my answer. Although it may not have every little trick in the book for Zend Framework, it at least has half-decent code hinting.