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

Rav*_*ish 0 magento magento-1.5

我收到以下错误: 在第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>-->

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

Zif*_*ius 5

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

<global>
    <helpers>
        <test>
            <class>Lucky_Test_Helper</class>
        </test>
    </helpers>
</global>
Run Code Online (Sandbox Code Playgroud)

在您定义的菜单中module="test",您的模块将为其处理转换