Think/View.php
private function render($content, $charset = '', $contentType = '')
    {
        if (empty($charset)) {
            $charset = C('DEFAULT_CHARSET');
        }
        if (empty($contentType)) {
            $contentType = C('TMPL_CONTENT_TYPE');
        }
        if (!headers_sent()) {
            // 网页字符编码
            header('Content-Type:'.$contentType.'; charset='.$charset);
            // 页面缓存控制
            header('Cache-control: '.C('HTTP_CACHE_CONTROL'));
            header('X-Powered-By:CheukPang');
        }
        // 输出模板文件
        echo $content;
    }
private function render($content, $charset = '', $contentType = '')
    {
        if (empty($charset)) {
            $charset = C('DEFAULT_CHARSET');
        }
        if (empty($contentType)) {
            $contentType = C('TMPL_CONTENT_TYPE');
        }
        if (!headers_sent()) {
            // 网页字符编码
            header('Content-Type:'.$contentType.'; charset='.$charset);
            // 页面缓存控制
            header('Cache-control: '.C('HTTP_CACHE_CONTROL'));
            header('X-Powered-By:CheukPang');
        }
        // 输出模板文件
        echo $content;
    }
输出内容文本可以包括Html

@param string $content 输出内容
@param string $charset 模板输出字符集
@param string $contentType 输出类型

@return void