Welcome Guest, Not a member yet? Register   Sign In
Sending output to browser
#1

[eluser]steelaz[/eluser]
Based on certain conditions, I want to break in the middle of controller and send custom output to the browser. I found a way to do this using private function _display() in output class, but perhaps there is proper way of doing it?

This is what I use right now:
Code:
$this->output->set_header($json_header);
$this->output->set_output(json_encode($result));
$this->output->_display();
exit(0);


Messages In This Thread
Sending output to browser - by El Forum - 05-21-2009, 07:37 AM
Sending output to browser - by El Forum - 05-21-2009, 11:54 AM
Sending output to browser - by El Forum - 05-21-2009, 12:39 PM
Sending output to browser - by El Forum - 05-21-2009, 06:45 PM



Theme © iAndrew 2016 - Forum software by © MyBB