Someone can explain me what means these rows in function _example_output($output = null) of CI demo Examples.php controller?
.. if (isset($output->isJSONResponse) && $output->isJSONResponse) { header('Content-Type: application/json; charset=utf-8'); echo $output->output; exit; ..
public function _example_output($output = null)
{
if (isset($output->isJSONResponse) && $output->isJSONResponse) {
header('Content-Type: application/json; charset=utf-8');
echo $output->output;
exit;
}
$this->load->view('example.php',(array)$output);
}
Very Thanks!