[eluser]mddd[/eluser]
Models in CI are not really meant to be used like this. If you load a model with
Code:
$this->load->model('some_model');
then it is available als $this->some_model.
You can use that variable to call a function, or create another object if you want:
Code:
$something = new Object($this->some_model);
But that is not really neccessary because you could also just say
Code:
// main code:
$something = new Object();
// code in Object class:
$CI =& get_instance();
$some_model = $CI->some_model;