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.
Related
I'm trying to install Zend on my ubuntu 14.04 + Nginx.
1) I have downloaded zend via composer
composer require zendframework/zendframework 2.5.0
2) Tell php location of zendframework via include_path. Something like that
include_path = ".:/usr/share/php:/home/dmitriy/zend/vendor/zendframework"
Folder looks like:
Zendframework folder
At this step, I thought that everything is almost done, and i need to download skeleton application to launch index.php.
3) I downloaded zip form Zend Github Repository. Extracted it.
Created nginx entry point to /public/index.php.
What I get at finish:
Page w/o images,css, etc.
Console:Console with wrong paths
Links are not reachable...
Can someone tell me:
1) Is step No:2 required?
2) Why links are broken?
3) Zend(1.11) library have another structure, maybe it is problem here and I have download wrong files?
Or give me links for ubuntu+nginx guide, i could not find.
Thank you.
You seem to be trying to install ZF2 rather than ZF1, so you can drop all the old bad practices such as modifying the include path to include a library.
Please have a look at the official tutorials to get started: https://docs.zendframework.com/tutorials/
Short version: you can download a "skeleton" rather than the librar(y|ies). A skeleton is a fully configured Zend Framework MVC project, you can then tweak it to suit your needs.
On another note, most php projects do not use the include path to autoload libraries for a few years now, and use Composer and the PSR-0 and PSR-4 recommandations. As you only seem to get started, I'd recommand you read a bit on PSRs, and then follow a ZF3 or Zend Expressive tutorial to get started, and not bother learning a legacy framework (even though ZF2 and ZF3 are really similar).
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 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...