直接调用页头页尾 直接原样显示了
正解:
要注意 file后不能加空格, 不然放在 页头会报错, 放在其他地方则不会被解析. 以上是我的经历,供参考.
{include file ='public/header' /} 错误
{include file='public/header' /} 正确