tp5的include 标签 不能用了么

直接调用页头页尾 直接原样显示了

正解:

      要注意 file后不能加空格, 不然放在 页头会报错, 放在其他地方则不会被解析. 以上是我的经历,供参考.

       {include file ='public/header' /}  错误

       {include file='public/header' /}  正确

posted @ 2018-03-29 15:55  雪莉06  阅读(2952)  评论(0编辑  收藏  举报