文件路径如下:
E:\www\peisong\Template\Home\default\footer.html
E:\www\peisong\Template\Home\default\Index_index.html
将footer.html包含到Index_index.html中,遇到了一些阻碍,测试几次,发现这样的写法
<include file="./Template/Home/default/footer.html" />
是可用的。
这就是TP manual中所说的
1、 使用完整文件名包含
格式:<include file="完整模板文件名" />
例如:
- <include file="./Tpl/default/Public/header.html" />