parameter passing

Associate
Joined
19 Jul 2006
Posts
1,847
I have this code
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);
works but doesnt load the proper templates.
Any ideas?
 
Back
Top Bottom