Welcome Guest, Not a member yet? Register   Sign In
Loading Views within Views
#4

[eluser]Nathan Moore[/eluser]
Hyteck -

By adding the TRUE value as the third argument, it returns the loaded view content into the variable instead of displaying it.


This will load the footer content into the variable $data['footer']:
Code:
$data['footer'] = $this->load->view('footer',null,TRUE);


Messages In This Thread
Loading Views within Views - by El Forum - 07-27-2008, 01:00 PM
Loading Views within Views - by El Forum - 07-27-2008, 01:41 PM
Loading Views within Views - by El Forum - 07-27-2008, 01:49 PM
Loading Views within Views - by El Forum - 07-27-2008, 01:51 PM
Loading Views within Views - by El Forum - 07-27-2008, 01:53 PM
Loading Views within Views - by El Forum - 07-27-2008, 02:42 PM
Loading Views within Views - by El Forum - 07-27-2008, 06:33 PM



Theme © iAndrew 2016 - Forum software by © MyBB