【发布时间】:2014-02-11 13:42:21
【问题描述】:
我正在尝试创建类 Mage_Reports_Model_Resource_Quote_Collection 的覆盖,我创建了我的自定义类并在 etc/config.xml 上对其进行了配置,但由于某种原因它无法正常工作..
这不是我的第一个覆盖类,我想我或多或少知道那里的事情是如何工作的,但也许它是扩展报告集合的一个边缘案例(?)
我应该在config.xml 上具体写什么?
我的代码是:
<models>
....
<reports>
<rewrite>
<resource_quote_collection>Mage_Customization_Model_Reports_Resource_Quote_Collection</resource_quote_collection>
</rewrite>
</reports>
.....
</models>
谢谢:)
【问题讨论】:
标签: xml magento overriding overloading extends