核心提示:直接在模板文件中运行多行PHP语句。模板文件/template/default/gycp/gycp_publish.htm:!--//说明: 显示公共头部模板--!--{template common...
直接在模板文件中运行多行PHP语句。
模板文件/template/default/gycp/gycp_publish.htm:
<!--//说明: 显示公共头部模板--> <!--{template common/header}--> <br/> <br/> <br/> <br/> aaa <br/> <!--{eval}--> $tmp_var = 'This is a string var in template.<br/>'; $tmp_var .= 'Demo run multi line php.'; echo $tmp_var; <!--{/eval}--> <br/> <br/> <br/> <!--//说明: 显示公共尾部模板--> <!--{template common/footer}-->
运行结果:
