public function __handle() { $this->meta_description = ""; $this->meta_keywords = ""; $this->meta_robots = "NOINDEX,NOFOLLOW"; $this->link_canonical = Ac::router()->directoryUrl(); if (Ac::response()->isSuccessful()) { Ac::response()->status(404); } $this->body(func_num_args() > 0 ? print_r(func_get_arg(0), true) : "<html><head></head><body><h1>" . Ac::response()->getStatusMessage() . "</h1></body></html>"); }
protected function header($name = null, $value = null) { return Ac::response()->header($name, $value); }
/** * Get / Set the response * @param Ac_Http_Response $response The new response * @return Ac_Http_Response */ public static function &response(Ac_Http_Response &$response = null) { if (!empty($response)) { self::$response = $response; } return self::$response; }