【发布时间】:2014-08-31 20:16:35
【问题描述】:
有没有办法在 CS-Cart 中全局禁用 var/compiled 中的编译?
我使用的是 CS-Cart 2.2.4 版
这是我在config.local.php中定义的:
define('DEVELOPMENT', true);
// Tweaks
$config['tweaks'] = array(
'js_compression' => false, // enables compession to reduce size of javascript files
'check_templates' => true, // disables templates checking to improve template engine speed
'inline_compilation' => false, // compiles nested templates in one file
'anti_csfr' => false, // protect forms from CSFR attacks (experimental)
'disable_block_cache' => true, // used to disable block cache
'join_css' => false, // is used to unite css files into one file
'allow_php_in_templates' => false, // Allow to use {php} tags in templates
);
我还在后端设置了开发模式,但这似乎并没有改变任何东西。
在插件中编辑 .tpl 时,我仍然需要删除 var/compiled 才能看到我的更改。有什么想法吗?
【问题讨论】:
标签: php compilation cs-cart