EllisLab text mark
Advanced Search
     
Autocomplete in Eclipse for Codeigniter 2
Posted: 27 April 2012 03:57 AM
Joined: 2012-04-27
2 posts

I found this article about Eclipse autocomplete for Codeigniter 2 & it worked grin

autocomplete in Eclipse for codeigniter 2

after applying those changes when you type

$this-> 

within a function Eclipse suggests all the included classes & methods e.g load

& if you choose

$this->load-> 

it suggests all the methods of the “load” class
e.g view ... & preview its parameters wink

 
Posted: 27 April 2012 04:08 AM   [ # 1 ]   [ Rating: 0 ]
Avatar
Joined: 2011-04-22
64 posts

Good trick. Thx!

 
Posted: 04 May 2012 01:41 AM   [ # 2 ]   [ Rating: 0 ]
Avatar
Joined: 2011-04-22
64 posts

Just an additional observation.

More autocompletion is possible.  If you want to have auto-completion on the dbforge class for example, just add (as the tutorial says):

/**
  * @var CI_DB_forge
  */
 
var $dbforge

to the core Controller and Model classes.