在smarty里面,我们在一个模块里调用另一个模块的模版都是这样直接写文件名
$smarty->display("index.html");而thinkphp里面,则不需要文件扩展名,有文件扩展名会发生错误,出生写全路径(见手册),thinkphp写法
$this->display('index');在smarty里面,我们在一个模块里调用另一个模块的模版都是这样直接写文件名$smarty->display("index.html");而thinkphp里面,则不需要文件扩展名,有文件扩展名会发生错误,出生写全路径(见手册),thinkphp写法$this->display('index');
在smarty里面,我们在一个模块里调用另一个模块的模版都是这样直接写文件名
$smarty->display("index.html");$this->display('index');
评论
0成为第一个留下想法的人。