Hi,
I’m a newbie to PHP and CodeIginiter.
Code-completion is something that really helps me when learning CodeIgniter.
I just read an article on NB4PHP developer blog (http://blogs.sun.com/netbeansphp/entry/fwd_model_based_code_insight).
It refers to an article written for CakePHP.
But the principles apply to CodeIginter, too.
For example, I put it this way in a contoller :
<?php
/**
* @property CI_Loader $load
* @property CI_Form_validation $form_validation
* @property CI_Input $input
* @property CI_Email $email
*
*/
class Form extends Controller
{
function index()
{
$this->load->helper(array('date','form'));
$this->load->library(array('email','form_validation'));
//Validaton rules
$this->form_validation->set_error_delimiters('<div class="error">', '</div>');
$this->form_validation->set_rules('member_no','Member Number','trim|required|numeric');
....
}
}
So, when we type $this-> it will offer load in the code-completion.
And when we type $this->load-> will offer all functions from the CI_Loader class.
Hope the info helps.