This can be done something like this:
$this->view->data = $data;
Or use the function assign:
$this->view->assign('data', $data);
edit: How to switch from another model function in one view Not quite sure, but taking your example:
$this->view->data['pass_one_thing'] = $this->model1->pass_all_mangoes();
$this->view->data['pass_another_thing'] = $this->model2->pass_all_oranges();
$this->load->view('viewfile', $data);
Then, in your opinion, you will get access to this trough:
$this->data['pass_one_thing']
$this->data['pass_another_thing']