更新时间:2023-02-12 12:30:33
经过大量的研究,我终于找出了问题。我的问题是在 config.xml
中的 before =Mage_Adminhtml
。由于企业工作的方式,不足以覆盖***类。
So after a lot of research I finally figured out the issue. My issue was with the before="Mage_Adminhtml"
in config.xml
. Due to the way enterprise works it was not enough to override the top level class.
我使用 print_r(Mage :: getConfig() - > getNode('admin / routers / adminhtml'),true)
找出覆盖它的所有模块,并通过列表。 Mage_XmlConnect_Adminhtml
是在企业方法之前覆盖此方法的最后一个类。
I used print_r(Mage::getConfig()->getNode('admin/routers/adminhtml'), true)
to figure out all the modules overriding it and worked through the list. Mage_XmlConnect_Adminhtml
was the last class that overrode this method before enterprise methods.
我最后的config.xml是这样的:
My final config.xml was like this:
<config>
<admin>
<routers>
<adminhtml>
<args>
<modules>
<Mymodule_Myextensionbefore="Mage_XmlConnect_Adminhtml">Mymodule_Myextension</Mymodule_Myextension>
</modules>
</args>
</adminhtml>
</routers>
</admin>
</config>
现在可以正常工作(编辑:Nope it does not ...见下面的评论)
It now works perfectly ( Nope it doesnt...see comment below)