Why can't I create PHP project using Eclipse Juno? - php

I have Eclipse Juno installed in Fedora 17 from the standard Fedora repositories.
I've added PDT from the Eclipse repository using the help->install new software interface.
However, when I go to create a new project I don't get the option to create a PHP project, only plain 'General' projects.
Why doesn't Eclipse let me create a PHP project and how can I fix this?

I closed Eclipse and deleted ~/.eclipse/*, restarted Eclipse and the PHP plugins (and others) seem to have woken up.
Still don't know what was causing it, but I'm in a place I can get work done now at least!

Related

How to integrate NetBeans 8.0 with Codeigniter

I am new to develop in php using Netbeans IDE. I use NetBeans 8.0 version. I want to develop a project using Codeigniter framework. But still I was unable to find a way to start a project with Codeigniter template.
When I'm creating a new project, Netbeans ask me to use number of php frameworks such as Symfony, Nette2, Zend2, Doctrine & etc. But there are no anything as Codeigniter.
I tried lots of solutions in stackoverflow. but some of them are for older netbeans versions and others are not working for me.
I downloaded the netbeans CI plugin from https://github.com/nbphpcouncil/nb-ci-plugin/releases
When I was try to install that plugin, NetBeans says that it needs some more plugins to be installed.
How to integrate Codeigniter framework to the NetBeans 8.0..?
Thanks in advance..
I'm using NetBeans 8.2 Patch 2 (Full IDE). I installed both NBM files from the link, that you paste and everything was fine. You need NetBeans with PHP support, if you not want the full IDE. So after installing the 2 nbm files, I can choose the codeigniter framework at the new PHP project wizard.
Regards
Chris

Eclipse PDT autocomplete current project not working

i just tried to enable autocomplete Zend library in my Eclipse project, following this post => Zend Framework Plugin for Eclipse PDT , looks like it worked a while yesterday, then i shotdown my computer, and this morning, the only autocomplete i could get is the PhpCore one !
I restarted my computer 3 times, i clean my project too, and nothing change, and my project and my Zend library can be seen in my PHP Include path.
I just can't figure out what's going on, if anybody have a hint, it would be really great
PS: my IDE is the Helios Service Release 2 (Eclipse for php version 1.3.2)
One of my colleagues had a very similar problem which he resolved by creating a new eclipse workspace and re-importing the project. Another possible solution would be to run the eclipse workspace cleaner (run eclipse.exe --clean). If none of these approaches work, you may wish to consider raising a defect against Zend.

eclipse helios for PHP - code formatter not available

I'm looking at my Eclipse helios (3.6) preferences page, and I can see I can set code formatting settings for the Java code, but not for PHP.
How can I set the spacing for function arguments in Eclipse for PHP. It seems the changes I make for Java don't apply to the PHP code.
I know that when I got Eclipse, I downloaded the version that was specifically for PHP: http://www.eclipse.org/downloads/packages/eclipse-php-developers/heliossr1
It's likely that the version you downloaded is the base version and does not have the additional PHP features included.
EDIT:
Check out http://en.sourceforge.jp/projects/pdt-tools/releases/?package_id=8764 for an Eclipse dropin you can use(the site is in Japanese, but I was able to find the download link easily). This may be what you're looking for. To install, just place it in the dropins folder of your Eclipse install and restart Eclipse.
It took me a while to figure out that was my problem a couple years ago.
Eclipse maintains a section just for PHP Eclipse that includes everything you need for coding PHP in Eclipse.

Eclipse on Windows 7 - Add PHP Support greyed out

I have Eclipse running on Windows 7, and am trying to work out how to get PHP support in my projects. Highlighting and intellisense seems to be working quite alright, but when I right-click my project and go to "Configure", the option "Add PHP Support" is grayed out.
Would anyone know how I could get that to be enabled, please?
Thanks in advance!
Are you sure that's what you want to do? I just tested in my Eclipse install, and everything that is already a PHP project has that option greyed out. The only project I can choose that option on is a Java project.
If you create a project by File -> New -> PHP Project then you don't need to do anything else to enable PHP support.

Eclipse PDT installation

I have a project that's intended to use some PHP as well as Java and Javascript, so I installed the PDT PHP plug-in for Eclipse, using the Install New Software menu option. Now Eclipse agrees PDT is installed, but no PHP features like creating or editing PHP files are appearing anywhere. Is there something else I need to do to activate PDT? (I did restart Eclipse like it said I needed to.)
Right click on your project, Configure (it's at the bottom of the list)->Add PHP Support...
After it's done, you should see a little P symbol in the project's icon.
Just create new project using the wizard, and choose PHP one. After Eclipse will know that your project is actually based on PHP, it will show you all the features.
In case if you have existing project, just open the PHP perspective.
I've once had a similar problem. Eclipse was running with the JRE 1.4, and it seems the JRE 1.5 or later is required to run the PDT. I switched to Java 1.6 and that solved the problem.
I run into this sometimes with eclipse plugins.
Have you tried uninstalling it, removing the jar and files it from eclipse/plugins and eclipse/features, then installing it again?
If you don't feel like doing that. Try installing it in a clean eclipse instance and if it works then it's just a config issue with eclipse.
You might have not installed all of the tools too.
The solution I eventually came up with was to just install Aptana Studio, a PHP IDE based on Eclipse, whose standalone version can coexist happily with the regular Eclipse on the same machine.
In order to have PHP support in eclipse project, you need to add PHPNature to the project. It's a kind of configuration paramter of eclipse project. When you craete a new PHP project using a wizard, check the .project file in a new project directory. There is a PHPNature line. Copy this line into .project of your java project.
Another solution is to separate java and php code in a different projects, each one craeted by right wizard.

Categories