I have this code
Basically what I normally do is set a $view then pass it to the load view which puts it in the main area of the template. So usually its
However this time I need to pass $data to the view to so
works but doesnt load the proper templates.
Any ideas?
Code:
$this->load->view('editclient_view', $data);
//$view['main_content'] = 'editclient_view';
//$this->load->view('includes/template', $view, $data);
Basically what I normally do is set a $view then pass it to the load view which puts it in the main area of the template. So usually its
PHP:
//$view['main_content'] = 'editclient_view';
//$this->load->view('includes/template', $view);
However this time I need to pass $data to the view to so
PHP:
$this->load->view('editclient_view', $data);
Any ideas?