Welcome Guest, Not a member yet? Register   Sign In
Store view in variable/views within views

Hello, I'm wondering if something like this would be possible:

$data['content'] = $this->load->view('skeleton/main_view', $data);

and then in the view go like


This would be extremely useful for ajax update requests because then I can call a function in my controller to just render the information that should change.


I'm not sure if it's what you want, but if the third parameter is true the view is returned and not printed

$data['content'] = $this->load->view('skeleton/main_view', $data, TRUE);

Thanks for clearifying that I'm an idiot...

Kidding Smile

You are my hero, honestly! Atleast for tonight hahahahaaaaa This was exactly what I was looking for.

Thanks for this!

Theme © iAndrew 2016 - Forum software by © MyBB