Prado\Web\THttpResponse::httpRedirect PHP Méthode

httpRedirect() public méthode

This method is used internally. Please use {@link redirect} instead.
Since: 3.1.5 You can set the set {@link setStatusCode StatusCode} to a value between 300 and 399 before calling this function to change the type of redirection. If not specified, StatusCode will be 302 (Found) by default
public httpRedirect ( $url )
    public function httpRedirect($url)
    {
        $this->ensureHeadersSent();
        if ($url[0] === '/') {
            $url = $this->getRequest()->getBaseUrl() . $url;
        }
        if ($this->_status >= 300 && $this->_status < 400) {
            // The status code has been modified to a valid redirection status, send it
            header('Location: ' . str_replace('&amp;', '&', $url), true, $this->_status);
        } else {
            header('Location: ' . str_replace('&amp;', '&', $url));
        }
        if (!$this->getApplication()->getRequestCompleted()) {
            $this->getApplication()->onEndRequest();
        }
        exit;
    }