Upgrade HTTP Responses
- The methods in the HTTP Responses class are named slightly different. The most important change in the naming is the switch from underscored method names to camelCase. The method
set_content_type()from version 3 is now named
setContentType()and so on.
- In the most cases you have to change
$this->responsefollowed by the method. You can find all methods here.
<?php $this->output->set_status_header(404); // ... $this->output ->set_content_type('application/json') ->set_output(json_encode(array('foo' => 'bar')));