我的配置方法
<?php
define('SMARTY_DIR',?'E:wamp/www/SmartyTest/smarty/');
require_once?(SMARTY_DIR.'Smarty.class.php');
$smarty=new?Smarty();
//指定HTML模板的地址
$smarty->setTemplateDir('./templates/');
//編譯后文件存放的地址
$smarty->setCompileDir('./templates_c/');
//指定配置地址
$smarty->setConfigDir('./configs/');
//是否開啟緩存
$smarty->caching=FALSE;
//指定緩存的地址
$smarty->setCacheDir('./cache/');
//指定緩存的時間
$smarty->cache_lifetime=?60;
//定義左右定界符
$smarty->left_delimiter?=?"{";
$smarty->right_delimiter=?"}";
2015-03-03
挺好的。