Welcome Guest, Not a member yet? Register   Sign In
$this->load->view() 3rd parameter TRUE cannot retrieve data
#2

[eluser]grisha[/eluser]
Quote:"The 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:"

Code:
$this->CI->load->view('templates/' . $template . '/layout/container', $data, $stream);

You need to return your results.

Code:
return $this->CI->load->view('templates/' . $template . '/layout/container', $data, $stream);


Messages In This Thread
$this->load->view() 3rd parameter TRUE cannot retrieve data - by El Forum - 02-27-2011, 11:48 AM



Theme © iAndrew 2016 - Forum software by © MyBB