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.

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.

Done! Now Aptana 3 autocompletes the CodeIgniter 2 functions.
Edit: December 27, 2011
Some other neat solutions: Aptana 3 and CodeIgniter 2 code completion
Thanks, thats just what I needed 😀
Thanx, it was very helpful for me.
BR
This is awesome, thank you!
Thanx a lot!
Thanks! This helped me get code completion working. Now if I can get XDebug playing codeigniter.
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!
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…
Thanks!
not working for me
You have insert the comment on your class.
the code the code is in the post of eclipse autocomplete.
http://taggedzi.com/articles/display/autocomplete-eclipse-codeigniter-2
You have insert this on your class:
/**
* @var CI_Config
*/
var $config;
/**
* @var CI_DB_active_record
*/
var $db;
/**
* @var CI_Email
*/
var $email;
/**
* @var CI_Form_validation
*/
var $form_validation;
/**
* @var CI_Input
*/
var $input;
/**
* @var CI_Loader
*/
var $load;
/**
* @var CI_Router
*/
var $router;
/**
* @var CI_Session
*/
var $session;
/**
* @var CI_Table
*/
var $table;
/**
* @var CI_Unit_test
*/
var $unit;
/**
* @var CI_URI
*/
var $uri;
/**
* @var CI_Pagination
*/
var $pagination;
Please, watch this: http://www.youtube.com/watch?v=MzvSA0hq3Ts&feature=player_embedded
This worked fine for me. Thanks!!!
Fantastic stuff, this marks the end of my days using Dreamweaver as an IDE.
Fantastic! Works like a charm! Thank you!
Thanks 🙂
Thank’s alot,
this is work for my aptana studio 3
Error with codeigniter 2.1.4:
Fatal error: Call to a member function select() on a non-object in….
Someone knows how to solve it?
a big, big, big THANK YOU !