src/Http/Response.php
function display($content = '', $tpl = '')
    {
        if (!headers_sent() && PHP_SAPI != 'cli') {
            $code = $this->getResponseStatus();
            $this->sendResponseStatus($code);
            $this->sendResponseHeader();
            $this->sendCookie();
        }

        $this->flushContent($content, $tpl);
    }
function display($content = '', $tpl = '')
    {
        if (!headers_sent() && PHP_SAPI != 'cli') {
            $code = $this->getResponseStatus();
            $this->sendResponseStatus($code);
            $this->sendResponseHeader();
            $this->sendCookie();
        }

        $this->flushContent($content, $tpl);
    }
调用模板输出信息

@param string $content
@param string $tpl