Magento 1.1 EE - 致命错误:类“Mage_MyPlugin_Helper_Data”


Magento 1.1 EE - Fatal error: Class 'Mage_MyPlugin_Helper_Data'

基本上,我正在为Magento制作一个插件,当我安装它时,我总是收到Mage的致命错误.php说我的类找不到 - 这是我的XML:

<?xml version="1.0"?>
<config>
  <modules>
    <Johnhudson_MyPlugin>
      <version>1.0.0</version>
    </Johnhudson_MyPlugin>
  </modules>
  <admin>
    <routers>
      <adminhtml>
        <args>
          <modules>
            <Johnhudson_MyPlugin after="Mage_Adminhtml">Johnhudson_MyPlugin</Johnhudson_MyPlugin>
          </modules>
        </args>
      </adminhtml>
    </routers>
  </admin>
  <global>
    <helpers>
      <johnhudson_myplugin>
        <class>Johnhudson_MyPlugin_Helper</class>
      </johnhudson_myplugin>
    </helpers>
  </global>
</config>

还有我的助手类:

<?php
class Johnhudson_MyPlugin_Helper_Data extends Mage_Core_Helper_Abstract
{
}

当我尝试安装它并清除缓存时,它总是给我一个致命错误,并以某种方式将我的"Johnhudson"软件包名称更改为显示为"Mage_MyPlugin_Helper_Data"的"Mage",我的帮助程序文件根据需要保存为数据.php。

尝试在帮助程序类声明中没有供应商,在全局 -> 帮助程序部分中将此johnhudson_myplugin更改为 myplugin

我只是将package_module更改为模块

    <global>
    <helpers>
      <johnhudson_myplugin>
        <class>Johnhudson_MyPlugin_Helper</class>
      </johnhudson_myplugin>
    </helpers>
  </global>