时间:2021-07-01 10:21:17 帮助过:4人阅读
debugging=false; $smarty->compile_check=false; $smarty->template_dir = "./templates/".$smartytpl; $smarty->compile_dir = "./templates_c/"; $smarty->config_dir = "./config/"; $smarty->cache_dir = "./cache/"; $smarty->caching = false; //上传要 true $smarty->cache_lifetime = 118; $smarty->left_delimiter = "{"; $smarty->right_delimiter = "}"; //****************** ?>
include_once("class/Smarty.class.php"); $global['path']['root'] = dirname(__FILE__) . '/'; //网站根目录 $smarty = new Smarty(); $smarty->template_dir = $global['path']['root'] . 'templates/default/'; //smarty缓存文件存放的目录,我这边是 themes/default/ $smarty->compile_dir = $global['path']['root'] . 'tmp/templates_c/'; $smarty->config_dir = $global['path']['root'] . 'conf/'; $smarty->cache_dir = $global['path']['cache']. 'smarty/'; $smarty->caching = 0; $smarty->cache_lifetime = 6000; $smarty->left_delimiter = ''; $smarty->trusted_dir = $global['path']['root'];