Configuring a Project's PHP Include Path

Adding external resources to a project's include path makes resources outside the project available for operations such as debugging, refactoring and code assist. See PHP Include Paths for more information.

This procedure describes how to configure your project's Include Path.

Instructions on how to complete a procedure

To configure your project's Include Path:

  1. In PHP Explorer view, right-click the required project and select Configure Include Path Libraries
    -Or- right-click the project and select Properties | Include Path.
    The project's PHP Include Path properties page will appear.

From this page you can configure the following:

To add aproject from your workspace to your Include Path:

  1.  Select the Projects tab.

  2. Click Add.
    The Required Project Selection dialog appears.

  3. Select the projects you would like to add and click OK.
    The selected project(s) will be added to your project's Include Path.

To add Path Variables  to your Include Path:

  1. Select the Libraries tab.

  2. Click Add Variable.
    The New Variable Entry dialog appears.

  3. Select the required Path Variable.

Note:

The Variable points to a folder. To choose an archive inside the folder, click Extend.
To add a Variable to the Path Variables list, click Configure Variables to be taken to the Path Variables Preferences page.

  1. Click OK.
    The Variable will be added to your project's Include Path.

Note:

The variable is a read-only file and will not be available for editing.

To add external folders to your Include Path:

  1. Select the Libraries tab.

  2. Click Add External Folder.
    The Add Include Path dialog appears.

  3. Browse to and select the required folder.

  4. Click OK.
    The folder will be added to your project's Include Path.

Note:

The library is a read-only file and will not be available for editing.

To configure the order of elements on your Include Path:

  1. Select the Order tab. This determines the order in which resources will be searched for in require/include calls.
    See Include Paths for more information on the order for which files are searched for.
    If applicable, it is recommended that elements appear in the same order as they do in your php.ini.

  2. If necessary, rearrange the order of the entries. To do so, select an element and click Up or Down to move it in the list.

  1. Once all the elements are added and are in the right order, click OK.

All the selected elements will be added to the project's include path.

 

 

Related Links

Related Links:
PHP Include Paths

Path Variables Preferences