views:

313

answers:

3

Is it possible, with or without plugin, to add more source folders to a PHP project, just like in a Java project?

I have downloaded and tested the Java version of NetBeans, and there is clearly possible to add more source folders. But not in the PHP version?

A: 

Under project properties, the source folder is only one. However, you could add folders to the PHP Include Path if you are trying to use files from another folder.

Gerardo
I need to edit the files too. In many of my projects the PHP files and JS files is in two different places on a shared host. I could add the common parent folder, but that is so high up and will cause NetBeans to scan every site on the host, and that's not a good solution.
Atmoz
A: 

At this time, it looks like NetBeans PHP projects does not support multiple source folders.

I have added a feature request to the NetBeans' Bugzilla: http://netbeans.org/bugzilla/show_bug.cgi?id=180889

Atmoz
A: 

you can add paths for all newly created PHP projects from:

netbeans options > PHP section > Global include path

or you may add project specific include paths in a project's "project properties" (right click on a project in the projects view", and then choose "PHP Include Path" from the left side section.

although you are not allowed to edit a project included sources. you might as well create an additional project in Netbeans and call it like "my-include-path", then add all the folders in your desired include paths to this project. now you can edit your included files in this project.

farzad