• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
load view() parameters???

Hi a simple question what are the parameters for the views?
I see some code with a boolean TRUE at the end i dont understand what that mean?

Quote:$this->load->view('view_file',$variable, TRUE??????)


Setting the third parameter to TRUE will save the data from the view into a string for future use/processing. The default is FALSE, which will send the view contents to the browser.

I use the TRUE function to send the view results into a variable that I can later work with....for example, this is an easy way to capture the information from a view to then send it all out as an email.....


thanks myerman

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.