配置Smarty

<?php
require("smarty/Smarty.class.php");
class SmartyProject extends Smarty{
function __construct(){
parent::__construct();
$this->template_dir="./";
$this->compile_dir="./system/templates_c/";
$this->config_dir="./system/configs/";
$this->cache_dir="./system/cache/";
}
}
?>

posted @ 2013-02-01 09:02  hasayaki  阅读(151)  评论(0编辑  收藏  举报