【发布时间】:2011-01-18 10:07:05
【问题描述】:
我知道我可以使用模块的 config.xml 中的以下语法覆盖/重写模块中的模型类。:
<config>
<global>
<models>
<moduletooverride>
<rewrite>
<modeltooverride>Mycompany_Mymodule_Model_Myfolder_Myclass</customer>
</rewrite>
</moduletooverride>
</models>
</global>
</config>
但如果我希望这是有条件的(例如,基于我的模块 adminhtml 配置部分中的某些设置?)
这有什么语法吗?
或者,有没有办法让我重写的课程像我重写之前一样进入课程? (允许它调用它的“前身”。
【问题讨论】:
标签: php xml magento magento-1.4