0

有没有办法var/compiled在 CS-Cart 中全局禁用编译?

我正在使用 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才能看到我的更改。任何想法?

4

1 回答 1

2

启用开发模式后,您可以通过将 cc 变量添加到任何 url 例如:http ://www.example.com/?cc或http://www.example.com/monitors/? cchttp://www.example.com/apple-iphone-5c-32gb-cell-phone-green.html?cchttp://www.example.com/index.php?dispatch=categories.view&category_id= 1&cc

于 2014-07-15T04:50:54.457 回答