Welcome Guest, Not a member yet? Register   Sign In
Multiple pages
#6

[eluser]theprodigy[/eluser]
The TRUE tells it to RETURN the output rather than ECHO the output. That way you can store it in a variable for use later. (EllisLabs thought of everything Wink )

HINT: if you need to pass variables to the views that you are storing, the second parameter is for that. If you don't, then leave as is.

With data being sent:
Code:
$data['div2'] = $this->load->view('mydiv2', $data_array, true);
WITHOUT data being sent:
Code:
$data['div2'] = $this->load->view('mydiv2', '', true);


Messages In This Thread
Multiple pages - by El Forum - 01-18-2010, 11:01 PM
Multiple pages - by El Forum - 01-18-2010, 11:06 PM
Multiple pages - by El Forum - 01-18-2010, 11:12 PM
Multiple pages - by El Forum - 01-18-2010, 11:19 PM
Multiple pages - by El Forum - 01-19-2010, 12:10 AM
Multiple pages - by El Forum - 01-19-2010, 12:27 AM
Multiple pages - by El Forum - 01-19-2010, 12:34 AM
Multiple pages - by El Forum - 01-19-2010, 12:14 PM



Theme © iAndrew 2016 - Forum software by © MyBB