Think/Controller.php
protected function buildHtml($htmlFile = '', $htmlPath = '', $templateFile = '')
    {
        $content = $this->fetch($templateFile);
        $htmlPath = !empty($htmlPath) ? $htmlPath : HTML_PATH;
        $htmlFile = $htmlPath.$htmlFile.C('HTML_FILE_SUFFIX');
        Storage::put($htmlFile, $content);

        return $content;
    }
protected function buildHtml($htmlFile = '', $htmlPath = '', $templateFile = '')
    {
        $content = $this->fetch($templateFile);
        $htmlPath = !empty($htmlPath) ? $htmlPath : HTML_PATH;
        $htmlFile = $htmlPath.$htmlFile.C('HTML_FILE_SUFFIX');
        Storage::put($htmlFile, $content);

        return $content;
    }
创建静态页面

@param string $htmlFile 生成的静态文件名称
@param string $htmlPath 生成的静态文件路径
@param string $templateFile 指定要调用的模板文件
默认为空 由系统自动定位模板文件

@return string