[eluser]garymardell[/eluser]
Again why do you need to?
From your controller load the model.
And pass a $var to say $this->modelName->getDetails($var);
Then in the function return the data to your controller.
Then to get the data into the view,
$data['details'] = $this->modelName->getDetails($var);
$this->load->view('viewname', $data);
Then in your view your data can be found at $details .