Only the class that extends CI_Controller,Model,View can use
$this->load->library('something');
$this->load->helper('something');//..etc
Your Custom Class cannot use the above code.
To use the above features in your custom class, your must use
$CI=&get instance();
$CI->load->library('something');
$CI->load->helper('something');
for example,in your custom class
// this following code will not work
Class Car
{
$this->load->library('something');
$this->load->helper('something');
}
//this will work
Class Car
{
$CI=&get_instance();
$CI->load->library('something');
$CI->load->helper('something');
}
// Here $CI is a variable.