[eluser]smilie[/eluser]
Hi Juan,
If TRUE is set at the end, then view (probably HTML code in there) will not be sent to the users screen but will be stored as data.
In example:
Code:
$tmpdata['header'] = $this->load->view('content/profile',$test,TRUE);
Following will 'happen':
1. view content/profile is 'loaded' and $test variable is passed;
2. result of that view (HTML page) will be saved in $tmpdata['header'] instead of being sent to the users screen;
After that, you can do:
Code:
$this->load->view('content/mainpage',$tmpdata);
which will activate page 'mainpage' with the page 'profile' ready for use.
I am using this to separate header / content / footer. This way I prepare header and footer beforehand and just pass them to the mainpage which presents them.
Regards,
Smilie