src/Control/HTTPResponse.php
public function output()
    {
        // Attach appropriate X-Include-JavaScript and X-Include-CSS headers
        if (Director::is_ajax()) {
            Requirements::include_in_response($this);
        }

        if ($this->isRedirect() && headers_sent()) {
            $this->htmlRedirect();
        } else {
            $this->outputHeaders();
            $this->outputBody();
        }
    }
public function output()
    {
        // Attach appropriate X-Include-JavaScript and X-Include-CSS headers
        if (Director::is_ajax()) {
            Requirements::include_in_response($this);
        }

        if ($this->isRedirect() && headers_sent()) {
            $this->htmlRedirect();
        } else {
            $this->outputHeaders();
            $this->outputBody();
        }
    }
public function output ( ) { // Attach appropriate X-Include-JavaScript and X-Include-CSS headers if ( Director :: is_ajax ( ) ) { Requirements :: include_in_response ( $ this ) ; } if ( $ this -> isRedirect ( ) && headers_sent ( ) ) { $ this -> htmlRedirect ( ) ; } else { $ this -> outputHeaders ( ) ; $ this -> outputBody ( ) ; } }
Send this HTTPResponse to the browser
Send this HTTPResponse to the browser