Tuesday, September 20, 2011

CodeIgniter and EclipsePDT

The method explained below is sort of simple and supprizingly the auto_completion is workable

Some more good features can be obtained with this method
1. A lot of web projects can be handled without launching the EclipsePDT again
To do that, make as many Web Directories as needed and copy CodeIgniter files in each directory
And Make a new PHP Project with a different name and connect it with CI_CORE
The result is that only one System Directory of the CodeIgniter is used and each project has its own copy of the application directoy
Even if each Web Directory contains a system directory, they are not used


-----------------------------------------
This method separates the code directory (i.e. Web Directory) from the project directory which happens to be the Eclipse Workspace

1. Create a Web Directory
(Or use an existing directory)
If there are none of the CodeIgniter files, copy them here

2. Create a Workspace Directory
(This one happens to be the project directory in the EclipsePDT)

3. Launch the EclipsePDT

4. Switch Workspace to the Workspace Directory

5. Make a new PHP Project and link it to the System folder in the Web Directory and call it CI_CORE

6. Make a new PHP Project and link it to the application folder in the Web Directory and name it CI_APP

7. Open the properties window of CI_APP by Right clicking it
Go to PHP Include Path => Projects -> Add
Add the CI_CORE

No comments:

Post a Comment