protected function contentType($type) { $this->header('Content-Type: ' . $type . '; charset=UTF-8'); }