Welcome Guest, Not a member yet? Register   Sign In
load view() parameters???
#1

[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
#2

[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-gui...oader.html
#3

[eluser]AceCool[/eluser]
thanks myerman




Theme © iAndrew 2016 - Forum software by © MyBB