Example #1
0
 /**
  * 中断浏览器的响应
  */
 static function finish()
 {
     self::$finish = true;
     fastcgi_finish_request();
 }
Example #2
0
 /**
  * Redirect to a new location
  *
  * @param string $location 
  * @param array $options 
  * @return void
  */
 public function redirect($location, $status = 302)
 {
     $this->response->setStatus($status);
     $this->response->setHeader('Location: ' . $location);
     $this->response->finish();
 }