摘要:
在php smarty 实战经历(一)中,聊了smarty的基本配置,这些日子对它又有了一些新的更新,分享给大家。 为了增加一些自己的配置,在原有的smarty.class的基本上,对缓存增加一些小的设置。 第一步:一个可以自定义设置的子类,命名为mysmarty.class.php,代码如下://设置子类配置参数class mysmarty extends Smarty{function __construct($cache_lifttime){parent::__construct();//重设smarty相关参数$this->setTemplateDir('D:/smart 阅读全文
posted @ 2012-08-08 11:17
mrsimple
阅读(169)
评论(0)
推荐(0)

浙公网安备 33010602011771号