![]() |
load view() parameters??? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: load view() parameters??? (/showthread.php?tid=10395) |
load view() parameters??? - El Forum - 07-30-2008 [eluser]AceCool[/eluser] 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??????) Thanks Ace load view() parameters??? - El Forum - 07-30-2008 [eluser]myerman[/eluser] 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..... http://ellislab.com/codeigniter/user-guide/libraries/loader.html load view() parameters??? - El Forum - 07-30-2008 [eluser]AceCool[/eluser] thanks myerman |