Magento使用自定义模块导致致命错误

时间:2011-10-14 13:46:59

标签: magento-1.5 magento

我收到以下错误: 在第521行的E:\ wamp \ www \ raj \ magento_new \ app \ Mage.php中找不到“Lucky_Test_Helper_Data”类

我使用模块创建者创建了这个模块。 我用我的一个magento安装检查了它,它工作正常。然后我将模块复制到我想要使用它的实际安装中。

我做了一些调试,发现如果我评论 config.xml 的某些部分,我就没有错误。

我看了一下错误的堆栈跟踪,其中包括以下行 include('E:\ wamp \ www \ raj \ magento_new \ app \ design \ adminhtml \ default \ default \ template \ page \ menu.phtml');

这是我的 config.xml

现在,如果我发表评论:


    <!--<test module="test">
    <title>Test</title>
    <sort_order>71</sort_order>               
    <children>
    <items module="test">
    <title>Manage Test </title>
    <sort_order>0</sort_order>
    <action>test/adminhtml_test</action>
    </items>
    </children>
    </test>-->

我没有错误。在此之前,模块似乎正在加载。 你觉得有什么不对吗? 帮帮我。

1 个答案:

答案 0 :(得分:5)

您必须明确定义您正在使用帮助程序,如下所示:

<global>
    <helpers>
        <test>
            <class>Lucky_Test_Helper</class>
        </test>
    </helpers>
</global>

在您使用module="test"定义的菜单中,您的模块会为其处理翻译

相关问题