Home > Backend Development > PHP Tutorial > 关于Thinkphp下buildHtml的有关问题

关于Thinkphp下buildHtml的有关问题

WBOY
Release: 2016-06-13 12:43:56
Original
983 people have browsed it

关于Thinkphp下buildHtml的问题
我是新手我很多东西不是很懂哈
 $this->buildHtml('1',HTML_PATH.'/','index','utf-8');
上面这个句话是我在网上看到的,它就是用thinkphp来生成html但是我用后,我的放问它,让它执行确是一点反应都没有啊,什么文件都没有生成,后来我又在网上查找了很久,都是这样做我,我就不知道这是为什么了。


// 本类由系统自动生成,仅供测试用途
class IndexAction extends Action {
    public function index(){
 $this->buildHtml('1',HTML_PATH.'/','index','utf-8');
 $this->display();
    }
}

///这个配置文件
return array(
 'HTML_FILE_SUFFIX'=>'.html',
);
?>
我不知道怎么来弄了,请帮忙啊

PHP THINKPHP buildhtml
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template