Ramblings

September 20, 2008

Adding a PHP nature to a project

Filed under: cool, php, tip, tool — michaelangela @ 12:55 am

I have a remote project already online and the PHP project type functions weren’t working, i.e. the PHP Explorer, the Outline view, Command(Ctrl) clicking an item to jump to it’s definition, etc. Those are really helpful! Not to mention auto completion! What was needed was the .project file on the server had to be updated to have the PHP nature suc as that below. That did the trick. Just make sure the tag has the real name of your project.

I haven’t tried adding Include Path’s though so that’s another issue altogether. Can’t get the code to display quite right… trying again…

[news.eclipse.tools.pdt] Remote System Explorer + Include Path


<?xml version="1.0" encoding="UTF-8"?>

<projectDescription>

<name>MyProj</name>

<comment></comment>

<projects>

</projects>

<buildSpec>

<buildCommand>

<name>org.eclipse.php.core.PhpIncrementalProjectBuilder</name>

<arguments>

</arguments>

</buildCommand>

<buildCommand>

<name>org.eclipse.wst.validation.validationbuilder</name>

<arguments>

</arguments>

</buildCommand>

</buildSpec>

<natures>

<nature>org.eclipse.php.core.PHPNature</nature>

</natures></projectDescription>


Advertisements

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Create a free website or blog at WordPress.com.

%d bloggers like this: