ThinkPHP3.2.3 +Smarty+SAE 环境搭建

浏览:784 发布日期:2016/06/28 分类:技术分享
1、下载ThinkPHP3.2.3 for SAE版
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' => '}>',
),
最佳答案
评论( 相关
后面还有条评论,点击查看>>