从模块config.xml中禁用核心magento模块

时间:2013-03-09 23:46:07

标签: magento

Magento是否可以在自定义模块config.xml中完全禁用核心模块(而不仅仅是模块输出)?

如果是这样的话?

2 个答案:

答案 0 :(得分:1)

在/ app / etc / modules下,您有一个Mage_Module.xml文件 在此文件中,您有一个启用的节点为true,将其设置为false;)

就是这样

答案 1 :(得分:0)

很少有模块可以被禁用但不是全部。 例如,不应禁用法师核心。

同样在禁用任何模块时检查是否有任何其他模块依赖于此模块。由于依赖的模块也将被禁用。

例如在Mage_Module.xml

<Mage_Customer>
    <active>true</active>
    <codePool>core</codePool>
    <depends>
        <Mage_Eav/>
        <Mage_Dataflow/>
        <Mage_Directory/>
    </depends>
</Mage_Customer>

将此更改为

<Mage_Customer>
    <active>flase</active>
    <codePool>core</codePool>
    <depends>
        <Mage_Eav/>
        <Mage_Dataflow/>
        <Mage_Directory/>
    </depends>
</Mage_Customer>

将禁用客户模块。

相关问题