App\Controller\Http::header PHP 메소드

header() 공개 메소드

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