CodeIgniter Forums
data for view - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: data for view (/showthread.php?tid=62320)



data for view - cupboy - 07-02-2015

Code:
    $this->load->model('case_model');

 $data['rows'] = $this->case_model->getTask($id);
 $data['threes'] = $this->case_model->get3s();    

    $this->load->view('task', $data);

Adding the 2nd $data line causes problems. What do I need to do instead?


RE: data for view - CroNiX - 07-02-2015

That looks correct. What does "causes problems" mean?


RE: data for view - cupboy - 07-03-2015

(07-02-2015, 04:23 PM)CroNiX Wrote: That looks correct. What does "causes problems" mean?

Well, nothing now. There was some other problem but it wasn't caused by the code I posted.