Welcome Guest, Not a member yet? Register   Sign In
Passing $Data to the Controller from View?
#6

[eluser]InsiteFX[/eluser]
There is a third parameter to the view!

Code:
Returning views as data
There is a third optional parameter lets you change the behavior of the function
so that it returns data as a string rather than sending it to your browser.
This can be useful if you want to process the data in some way. If you set the
parameter to true (boolean) it will return data. The default behavior is false,
which sends it to your browser. Remember to assign it to a variable if you want
the data returned:

$string = $this->load->view('myfile', '', true);

InsiteFX


Messages In This Thread
Passing $Data to the Controller from View? - by El Forum - 08-22-2010, 06:52 AM
Passing $Data to the Controller from View? - by El Forum - 08-22-2010, 07:04 AM
Passing $Data to the Controller from View? - by El Forum - 08-22-2010, 07:37 AM
Passing $Data to the Controller from View? - by El Forum - 08-22-2010, 12:31 PM
Passing $Data to the Controller from View? - by El Forum - 08-22-2010, 01:40 PM
Passing $Data to the Controller from View? - by El Forum - 08-22-2010, 11:15 PM



Theme © iAndrew 2016 - Forum software by © MyBB