模版中 include 中传变量要怎么传呀?

浏览:1251 发布日期:2014/03/05 分类:求助交流 关键字: include
在index.html模板中导入header.html 想传递一个变量$a
<include file="Public:header" title="$a" />
--------------------------
<title>[title]</title>
输出后
页面上title这边就直接输出$a
如果直接将$a改成字符输出正常
请问要如何设置这个$a 才能正确输出?
最佳答案
评论( 相关
后面还有条评论,点击查看>>