I have best way to add autocomplete in eclipse
class CI_Base {
/**
/* add all vars in this class like..load,uri etc
var $load
var $uri
function CI_Base()
}
/**————————————————————————————————————————-
/* in your class libray add some variables and function
/* as this
class CI_URI {
//add this var to you library class
private static $instance;
function CI_URI()
{
//add this line into constuctor method
self::$instance =& $this;
}
//add this function
public static function &get;_uri_instance()
{
return self::$instance;
}
}//end class
//add one more method out of this class
function &get;_uri_instance()
{
return CI_URI::get_uri_instance();
}
// end of URI.php file
//————————————————————————————————————-
// add this class into library folder
class Autoassist extends CI_Base
{
function __construct()
{
$this->uri =& get_uri_instance();
}//end funciton
}//end class