摘要:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" ><head> <title>{{$Name}}</title></head> <body> {{*首先显示模板数据,然后使用函 阅读全文
摘要:
<?php //Smarty_extends.class.php require_once('includes/smarty/Smarty.class.php'); //包含smarty类文件 /** * class Smarty_extends * * Description for class Smarty_extends * * @author:王康 */ class Smarty_extends extends Smarty{ /** * Smarty_extends constructor * * @param */ function Smarty_extend 阅读全文
摘要:
<?php $template_name = 'TemplateDemo'; //模版文件夹名 require_once('includes/smarty/Smarty.class.php'); //包含smarty类文件 $smarty=new Smarty; //初始化Smarty $smarty->compile_check = true; //打开模版编译检查 $smarty->debugging = false; //关闭调试 $smarty->caching = false; //关闭缓存 $smarty->templa 阅读全文