php模板引擎smarty
摘要:
smarty配置:include("smarty/smarty.class.php"); //调用smarty配置文件,默认在smarty根目录下。$smarty = new smarty(); //新建一个对象$smarty->caching = false; //关闭缓存,有利于测试。如需开启缓存,改为true$smarty->cache_lifetime = 60 //设置缓存存活时间,单位秒,必须把caching=true下才作用$smarty->config_dir = "./configs"; //设置配置文件目录,可用$s 阅读全文
posted @ 2011-07-13 15:18 cn三少<script></script> 阅读(562) 评论(0) 推荐(0) 编辑