public static function setHeader($data = "", $code = 0) { header($data, true, $code); }
/** * Set the view response format * * @return \Voodoo\Core\Controller\Rest */ protected function setJsonResponse() { $this->renderFormat = Core\View\Rest::FORMAT_JSON; Core\Http\Response::setHeader('Content-type: application/json'); return $this; }