Resources\Controller::redirect PHP Method

redirect() public method

public redirect ( $location = '', $status = 302 )
    public function redirect($location = '', $status = 302)
    {
        if (substr($location, 0, 4) != 'http') {
            $location = $this->location() . $location;
        }
        Response::setHeader('Location', $location, $status);
        return '<html><head><meta http-equiv="refresh" content="0; url=' . $location . '" /></head></html>';
    }