折雨的天空
首页
微语
登录
从smarty转向thinkphp的模版要注意一下
2013-6-19 我好笨
在smarty里面,我们在一个模块里调用另一个模块的模版都是这样直接写文件名
$smarty->display("index.html");
而thinkphp里面,则不需要文件扩展名,有文件扩展名会发生错误,出生写全路径(见手册),thinkphp写法
$this->display('index');
发表评论:
昵称
邮件地址 (选填)
个人主页 (选填)
内容