在Magento中添加Data.php Helper出错了

use*_*658 4 configuration system helper magento

在自定义Magento系统配置中遵循Alan Storm教程,当我尝试添加时

帮助文件夹中的Data.php我仍然收到此错误:

致命错误:在第520行的E:\ xampp\htdocs\magento\app\Mage.php中找不到"Mage_Helloworld_Helper_Data"类

**Alanstormdotcom\Helloworld\Helper\Data.php**
<?php
class Alanstormdotcom_Helloworld_Helper_Data extends Mage_Core_Helper_Abstract
{
} 

**Alanstormdotcom\Helloworld\etc\system.xml**
<?xml version="1.0"?>
<config>    
    <tabs>
        <helloconfig translate="label" module="helloworld">
                <label>Hello Config</label>
                <sort_order>99999</sort_order>
        </helloconfig>  
    </tabs> 
</config>


**Alanstormdotcom\Helloworld\etc\config.xml**
<?xml version="1.0"?>
<config>    
    <modules>
        <Alanstormdotcom_Helloworld>
            <version>0.1.0</version>
        </Alanstormdotcom_Helloworld>
    </modules>
<frontend>
        <routers>
            <helloworld>
                <use>standard</use>
                <args>
                    <module>Alanstormdotcom_Helloworld</module>
                    <frontName>helloworld</frontName>
                </args>
            </helloworld>
        </routers>
    </frontend>
    <global>
      <helpers>
         <class>Alanstormdotcom_Helloworld_Helper</class>
      </helpers>    
    </global>
</config> 
Run Code Online (Sandbox Code Playgroud)

我只是想学习..我知道这适用于你,但仍然帮助我找到原因......我可能会想念

东西..谢谢.

clo*_*eek 13

这个位错了:

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

它应该是:

<global>
    <helpers>
        <helloworld>
            <class>Alanstormdotcom_Helloworld_Helper</class>
        </helloworld>
    </helpers>    
</global>
Run Code Online (Sandbox Code Playgroud)

(<helloworld>标签对应module="helloworld"上面)