This procedure describes how to use the Organize Includes feature in order for PHP objects created in one file to be called into other files within the project.
Before calling objects into one file, you must first create them in another file.
Note:
Ensure that you save any changes to the file before applying the refactoring feature.
|
|
To use the Organize Includes feature:
|
|
All objects that were called into the file from other files will now have an 'include_once' command. |
|
Note:
Only static include calls will be refactored.
The Organize Includes feature can also:
Delete references and "include" calls to files if the relevant items have been deleted from the code.
Move "include" calls to the top of your script if they have been placed further down, in order for the elements to be referenced before the script is run.
Note:
If the included files are not contained within the same
project as the active file, their location must be added to the project's
include path in order for them to be 'Organize Includes' feature to work
fully.
See the 'Include Paths' and 'Adding
Elements to a Project's Include Path' topics for more information.
|
|
|
|
|
Related Links: |
|
|
|