【问题标题】:Disable CS-Cart compilation禁用 CS-Cart 编译
【发布时间】: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


    【解决方案1】:

    【讨论】:

    • 我想我试过了,但也没有用。我明天再试一次,让你知道。无论如何感谢您的回复!
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-02-23
    • 2015-12-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-05-23
    相关资源
    最近更新 更多