thinkphp模板包含问题

浏览:2580 发布日期:2014/01/09 分类:求助交流 关键字: thinkphp,include,动态包含文件
在模板中我想实现动态包含文件功能,thinkphp手册里面这样说:
5、 用变量控制要导入的模版
格式:<include file="$变量名" />
例如
<include file="$tplName" />
我在我自己的模板文件中使用下边的方法失败,不能包含文件<include file="./Index/Html/{$product}.html" />
我在页面直接输出./Index/Html/{$product}.html又是正常的,求帮助
最佳答案
评论() 相关
后面还有条评论,点击查看>>