/** * Sends the content type header. * * @param string $contentType */ public static function sendContentType($contentType = null) { header('Content-Type: ' . ($contentType ?: 'text/html; charset=utf-8')); self::$sentContentType = true; }