public function display()
    {
        \http_response_code($this->getResponseCode());
        if ($this->contentType) {
            header('Content-Type: ' . $this->contentType);
        }
        //        header('Content-Length: ' . strlen($this->content));
        if ($this->redirection) {
            header('Location: ' . $this->redirection);
        }
        Events::dispatch('beforeResponseSend', array($this));
        session_write_close();
        print $this->content;
        Profiler::dump();
        Events::dispatch('afterResponseSend', array($this));
    }
public function display()
    {
        \http_response_code($this->getResponseCode());
        if ($this->contentType) {
            header('Content-Type: ' . $this->contentType);
        }
        //        header('Content-Length: ' . strlen($this->content));
        if ($this->redirection) {
            header('Location: ' . $this->redirection);
        }
        Events::dispatch('beforeResponseSend', array($this));
        session_write_close();
        print $this->content;
        Profiler::dump();
        Events::dispatch('afterResponseSend', array($this));
    }
public function display ( ) { \ http_response_code ( $ this -> getResponseCode ( ) ) ; if ( $ this -> contentType ) { header ( 'Content-Type: ' . $ this -> contentType ) ; } //        header('Content-Length: ' . strlen($this->content)); if ( $ this -> redirection ) { header ( 'Location: ' . $ this -> redirection ) ; } Events :: dispatch ( 'beforeResponseSend' , array ( $ this ) ) ; session_write_close ( ) ; print $ this -> content ; Profiler :: dump ( ) ; Events :: dispatch ( 'afterResponseSend' , array ( $ this ) ) ; }
Envia la respuesta al cliente
Envia la respuesta al cliente