CI_Output::set_output()

set_output($output)

Parameters:
  • $output (string) – String to set the output to
Returns:

CI_Output instance (method chaining)

Return type:

CI_Output

Permits you to manually set the final output string. Usage example:

$this->output->set_output($data);

Important

If you do set your output manually, it must be the last thing done in the function you call it from. For example, if you build a page in one of your controller methods, don’t set the output until the end.

doc_CodeIgniter
2016-10-15 16:31:49
Comments
Leave a Comment

Please login to continue.