Autocomplete in Aptana 3 for CodeIgniter 2

Based on the instructions from Autocomplete in Eclipse for CodeIgniter 2, I tried to get it done with Aptana 3. It’s a little bit different, so here is what I did:

I modified the files from CodeIgniter like explained by TaggedZi.
Then I added a new user library. Open Aptana 3 and navigate to:
Window > Preferences > Aptana > Editors > PHP – Libraries
Click New user library, type in a name and select the path to the modified CodeIgniter library.

Adding a new user library for CodeIgniter 2
Adding a new user library for CodeIgniter 2

Deselect the library and close the Preferences.
Now open the properties of your actual project and go to PHP Buildpath > Libraries.
Uncheck “Use Project specified settings”and select the CodeIgniter library.

Changing project properties
Changing project properties

Done! Now Aptana 3 autocompletes the CodeIgniter 2 functions.

Edit: December 27, 2011
Some other neat solutions: Aptana 3 and CodeIgniter 2 code completion


18 thoughts on “Autocomplete in Aptana 3 for CodeIgniter 2”

  1. Hello,
    great tip.
    However, I have a problem when pasting the code in the Model.
    The var $db makes my website look weird. No more CSS, no more db connection, …

    Does anyone have the same problem?

    Thank you very much!

  2. Hello again,
    just solved my problem.
    I noticed the class DB was all upcase. So instead of var $db I put var $DB.
    Everything working just fine now.
    I don’t know why it does not trigger the same error in the controller…



Leave a Reply to iToru Cancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.