Smarttemplate 学习
笔记 - Smarttemplate配置
转载注明:
PHP开发资源网(
http://www.phpres.com/) :小强
bool $reuse_code
设置是否保存编译后的
模板代码,以备重用
如果设置否false,SmartTemplate会在每次模板使用时都重新编译模板
string $template_dir
模板
文件目录,默认为当前目录
可使用全局变量$_CONFIG['template_dir']设置
string $temp_dir
模板编译保存目录,默认为/tmp/
可使用全局变量$_CONFIG['smarttemplate_compiled']设置
注意:确保PHP对该目录可写
string $cache_dir
输出缓存目录,默认为/tmp/
可使用全局变量$_CONFIG['smarttemplate_ cache']设置
注意:确保PHP对该目录可写
int $cache_lifetime
默认输出缓存周期
可使用全局变量$_CONFIG[' cache_lifetime ']设置
[
本帖最后由 小强 于 2007-11-15 20:17 编辑 ]