CodeIgniter Forums
codeignitier and eclipse - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: codeignitier and eclipse (/showthread.php?tid=8861)

Pages: 1 2 3 4 5


codeignitier and eclipse - El Forum - 03-05-2010

[eluser]Unknown[/eluser]
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


codeignitier and eclipse - El Forum - 03-06-2010

[eluser]Unknown[/eluser]
[quote author="somnath" date="1267822226"]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[/quote]

Thank for your code!


codeignitier and eclipse - El Forum - 03-06-2010

[eluser]Shay Falador[/eluser]
Couldn't read the whole things, but I found a solution for this problem with Eclipse.
I posted it here: http://ellislab.com/forums/viewthread/144722/

Enjoy!


codeignitier and eclipse - El Forum - 02-02-2011

[eluser]adben[/eluser]
Hi! This is a my solution for enable code complition in Eclipse. Put "foreclipse.php" in your document root. Enjoy it! http://asakasinsky.blogspot.com/2011/02/codeigniter-eclipse-pdt-aptana-studio.html
P.S if you use CI ver 1.7, then change "class CI_Controller {" to "class Controller {"