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

[eluser]Lockzi[/eluser]
Hello, I'm wondering if something like this would be possible:

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

and then in the view go like

Code:
<?=$content?>


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.

Cheers


Messages In This Thread
Store view in variable/views within views - by El Forum - 02-05-2008, 05:45 PM
Store view in variable/views within views - by El Forum - 02-05-2008, 05:49 PM
Store view in variable/views within views - by El Forum - 02-05-2008, 05:52 PM
Store view in variable/views within views - by El Forum - 02-15-2011, 07:43 PM



Theme © iAndrew 2016 - Forum software by © MyBB