Welcome Guest, Not a member yet? Register   Sign In
In the interests of DRY
#8

[eluser]AndrewMalachel[/eluser]
Ahhh... yes.. it's my mistakes...

I just read the user_guide manual again, and I believe I'd skipped the
"function _output" parts...

This function doesn't need to be called since if you put it in your controller,
CI will automatically call it at the and of it process, as a post-process,
before the data are sent to the browser...

and the first parameter of the function holds the output 'raw' material..
from what I'd read, (I think) you can get the raw by using the third
parameter of the load-view function...
i.e:
Code:
$this->output = $this->load->view('my_view', $my_data, TRUE);
and the output:
Code:
function _output(){
echo $this->output;
or maybe..
Code:
function _output($data = $this->output){
echo $data;
The above code has never been tested before by me..
hope I get it right...

Since I'd never use the _output function, I totally forgot about it..
Let me dig up and try something with the _output function...
hope I can paid up my mistakes above...
just wait...

Ugh.. shame on me...


Messages In This Thread
In the interests of DRY - by El Forum - 01-12-2009, 08:16 PM
In the interests of DRY - by El Forum - 01-13-2009, 12:14 AM
In the interests of DRY - by El Forum - 01-13-2009, 12:38 AM
In the interests of DRY - by El Forum - 01-13-2009, 12:51 AM
In the interests of DRY - by El Forum - 01-13-2009, 12:57 AM
In the interests of DRY - by El Forum - 01-13-2009, 02:17 AM
In the interests of DRY - by El Forum - 01-13-2009, 07:47 PM
In the interests of DRY - by El Forum - 01-13-2009, 11:38 PM
In the interests of DRY - by El Forum - 01-14-2009, 12:02 AM
In the interests of DRY - by El Forum - 01-14-2009, 06:14 AM



Theme © iAndrew 2016 - Forum software by © MyBB