模板文件test6.html代码:
Smarty Test
php代码:
assign("cond",$cond); //对模版中的变量赋值 $smarty->display('test6.htm'); //显示页面 ?>
上一篇:如何在php中利用smarty实现一个多模版网站
下一篇:php中如何实现smarty区域循环