lib/Http/Response.php
public function doRedirect($url, $permanent = false)
    {
        $this->setResponseCode($permanent ? ResponseCode::HTTP_MOVED_PERMANENTLY : ResponseCode::HTTP_FOUND);
        $this->setHeader('Location', $url);
        return $this;
    }
public function doRedirect($url, $permanent = false)
    {
        $this->setResponseCode($permanent ? ResponseCode::HTTP_MOVED_PERMANENTLY : ResponseCode::HTTP_FOUND);
        $this->setHeader('Location', $url);
        return $this;
    }
public function doRedirect ( $ url , $ permanent = false ) { $ this -> setResponseCode ( $ permanent ? ResponseCode :: HTTP_MOVED_PERMANENTLY : ResponseCode :: HTTP_FOUND ) ; $ this -> setHeader ( 'Location' , $ url ) ; return $ this ; }
Redirect the user to a specific URL.
Performs a HTTP 301 or HTTP 302 redirect.

@param string $url
@param bool $permanent If true, a 301 Moved Permanently will be issued; otherwise a 307 Temporary Redirect.
@return $this
Redirect the user to a specific URL . Performs a HTTP 301 or HTTP 302 redirect .