[eluser]Jason van der Zeeuw[/eluser]
Hey all,
Here is my problem code:
Code:
var $CI; //Contains an instance of the library
public function __construct() {
$this->CI = & get_instance();
$this->CI->load->model('mymodel');
}
function test()
{
return $this->mymodel->testmethod());
}
I get 2 errors:
Message: Undefined property: My_library::$mymodel (so he doesn't knows 'mymodel')
&
Fatal error: Call to a member function testmethod() on a non-object