Magento:我们如何覆盖企业文件(企业版)?

时间:2011-04-29 01:54:55

标签: override rewrite magento

我们如何覆盖/重写企业类文件/类(适用于Magento企业版)?

1 个答案:

答案 0 :(得分:5)

我明白了。它与我们对Community Edition中的核心文件的处理方式类似。

只需要查看任何企业核心模块的 config.xml 即可。他们把“企业”放在了前面。

覆盖 Enterprise_GiftRegistry 阻止的示例代码: -

<blocks>    
    <enterprise_giftregistry>
        <rewrite>
               <customer_list>MyNamespace_MyModule_Block_MyBlock</customer_list>
        </rewrite>
    </enterprise_giftregistry>
</blocks>

感谢。