codeignitier and eclipse |
[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
[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!
[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!
[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/...tudio.html P.S if you use CI ver 1.7, then change "class CI_Controller {" to "class Controller {" |
Welcome Guest, Not a member yet? Register Sign In |