let’s develop using autocomplete codeigniter’s core library in eclipse

class CI_Base extends CI_Loader {
// Core CI libraries
var $config ;
var $form_validation ;
var $input ;
var $load ;
var $router;
var $session ;
var $uri;
var $output;
var $db;
var $unit;
function CI_Base()
{
// This allows syntax like $this->load->foo() to work
parent::CI_Loader();
$this->load =& $this;
// This allows resources used within controller constructors to work
global $OBJ;
$OBJ = $this->load; // Do NOT use a reference.
// Core CI libraries
$this->config = new CI_Config();
$this->form_validation = new CI_Form_validation();
$this->input = new CI_Input();
$this->load = new CI_Loader();
$this->router = new CI_Router();
$this->session = new CI_Session();
$this->uri = new CI_URI();
$this->output = new CI_Output();
$this->db = new CI_DB_active_record();
$this->unit = new CI_Unit_test();
}
}

add in Base4.php

class CI_Base extends CI_Loader {

// Core CI libraries

var $config ;

var $form_validation ;

var $input ;

var $load ;

var $router;

var $session ;

var $uri;

var $output;

var $db;

var $unit;

function CI_Base()

{

// This allows syntax like $this->load->foo() to work

parent::CI_Loader();

$this->load =& $this;

// This allows resources used within controller constructors to work

global $OBJ;

$OBJ = $this->load; // Do NOT use a reference.

// Core CI libraries

$this->config = new CI_Config();

$this->form_validation = new CI_Form_validation();

$this->input = new CI_Input();

$this->load = new CI_Loader();

$this->router = new CI_Router();

$this->session = new CI_Session();

$this->uri = new CI_URI();

$this->output = new CI_Output();

$this->db = new CI_DB_active_record();

$this->unit = new CI_Unit_test();

}

}

Advertisements