【php开源代码栏目提醒】:文章导读:在新的一年中,各位网友都进入紧张的学习或是工作阶段。网学会员整理了php开源代码-12_4.php的相关内容供大家参考,祝大家在新的一年里工作和学习顺利!
<?php
/*******************12_4.php*********************/
//包含Smarty类
include("smarty/Smarty.class.php");
//实例化Smarty类
$smarty = new Smarty();
//打开Smarty调试开关
$smarty->debugging = true;
//处理模板标签
$smarty->assign("title","Smarty使用示例");
$smarty->assign("detail","<font size=20>被替换的显示内容</font>");
$smarty->assign("footer","<br>底部内容:<font>copyright.版本所有,2008</font>");
//输出模板内容
$smarty->display('demo.tpl');
?>