gusucode.com > 同城苏州黄页系统php源码程序 > lib/smarty/smarty.init.php
<? //template include_once($root_path."lib/smarty/Smarty.class.php"); function initSmartTemplate(&$t) { global $root_path,$site_url,$upload_url,$upload_path; $t = new Smarty(); $t->template_dir = $root_path."template/"; $t->compile_dir = $root_path."smarty_data/templates_c/"; $t->config_dir = $root_path."smarty_data/configs/"; $t->cache_dir = $root_path."smarty_data/cache/"; $t->left_delimiter = "<%"; $t->right_delimiter = "%>"; } initSmartTemplate(&$t); $smaty_loaded=true; ?>