模板使用<{include file="header.html"}>报错

#1 jackxushijie

模板html内容:
<{include file=header.html}>

<{$tpl_title}>导航



Main_Index  
Main_Page  
Topic_Index  
Topic_Page  


内容


<{$contents}>


<{include file=footer.html}>


程序运行的时候报错:
Smarty Error: Syntax Error in template "D:\phpWeb\WebRoom\htdocs\wincms/template\member/main_page.html" on line 1 "<{include file=header.html}>" - Unexpected ".", expected one of: "}>" , " "

去掉模板页面的:
<{include file=header.html}>
<{include file=footer.html}>

运行程序正常
请问是哪里错了。或者是需要在哪里配置什么?

2012-04-10 13:46:28

#2 47660666

没加引号?
<{include file="header.html"}>

2012-04-10 15:49:56

#3 jake

按照提示来说是。

2012-04-10 22:15:00