Welcome Guest, Not a member yet? Register   Sign In
Passing and accessing values within data between controller and view
#4

Thank you for your recommendations. It helped me to begin by loading the view in a basic way. What I was aiming for was the following:

$main_content_data['accounts'] = $this->accounts_model->get_accounts();

$this->data['main_content_view'] = $this->load->view('share/accounts_view', $main_content_data, TRUE);
$this->load->view('share/default', $this->data);

And this worked.
Reply


Messages In This Thread
RE: Passing and accessing values within data between controller and view - by Shawn - 04-14-2015, 06:34 PM



Theme © iAndrew 2016 - Forum software by © MyBB