function header() { //发送Http状态码,如500, 404等等 $this->http->status(302); //使用此函数代替PHP的header函数 $this->http->header('Location', 'http://www.baidu.com/'); }