2、在‘项目\Common\Config\config.php’中添加如下代码:
if (function_exists('saeAutoLoader')) {
C('TMPL_ENGINE_CONFIG.compile_dir', 'saemc://templates_c/');//使用SaeMemcache设置templates_c
C('TMPL_ENGINE_CONFIG.cache_dir', 'saemc://templates_c/');//同上
C('TMPL_ENGINE_CONFIG.compile_locking', FALSE);// 防止调用touch,saemc会自动更新时间,不需要touch
}
return array(
'TMPL_ENGINE_TYPE' => 'Smarty',
'TMPL_ENGINE_CONFIG' => array(
//修改Smarty的解析标识符解决与CSS等的冲突
'left_delimiter' => '<{',
'right_delimiter' => '}>',
),
最佳答案
