Autocomplete in Codeigniter 2.1.0 and Eclipse pdt
I have recently started working with Codeigniter for a few side projects and to help me stay up to date with php. I am using eclipse pdt as my ide. In order to get auto complete to work it is quite simple. (Note, these steps are the exact same for Aptana. Just adding a user library…)
Now you should have auto complete for all your CI methods!
Code Changes:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
//Put this code right before: class CI_Model { ...
/**
* @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;
(The code is from this post here)


![[image]](http://mowser.com/img?url=http%3A%2F%2Fwww.jeffguthrie.com%2Fdl%2Fair%2Ftwitteruserlookup%2FTwitterUsernameLookup_badgeImage.png)