예제 #1
0
파일: html.php 프로젝트: rperello/Anidcore
 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>");
 }
예제 #2
0
 protected function header($name = null, $value = null)
 {
     return Ac::response()->header($name, $value);
 }
예제 #3
0
파일: ac.php 프로젝트: rperello/Anidcore
 /**
  * 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;
 }