3
我想在管理面板中創建新的連接,這會導致幫助器找不到錯誤。我的配置文件如下。Magento 1.9找不到幫助器錯誤
應用程序\代碼\本地\ Ddevs \ Ebayaff \等\ config.xml中
<?xml version="1.0"?>
<config>
<modules>
<Ddevs_Ebayaff>
<version>0.1.0</version>
</Ddevs_Ebayaff>
</modules>
<global>
<resources>
<add_category_attribute>
<setup>
<module>Ddevs_Ebayaff</module>
<class>Mage_Eav_Model_Entity_Setup</class>
</setup>
</add_category_attribute>
</resources>
<helpers>
<ebayaff>
<class>Ddevs_Ebayaff_Helper</class>
</ebayaff>
</helpers>
</global>
<admin>
<routers>
<samplerouter1>
<use>admin</use>
<args>
<module>Ddevs_Ebayaff_AdminControllersHere</module>
<frontName>admin</frontName>
<modules>
<sintax after="Ddevs_Ebayaff_AdminControllersHere">Mage_Adminhtml</sintax>
</modules>
</args>
</samplerouter1>
</routers>
</admin>
應用程序\代碼\本地\ Ddevs \ Ebayaff \等\ adminhtml.xml
<?xml version="1.0"?>
<config>
<menu>
<mymenu1 translate="title" module="ebayaff">
<title>Ebay aff</title>
<sort_order>200</sort_order>
<children>
<myitem1 translate="title" module="samplerouter1">
<title>Simple one column layout with custom template file assigned for viewsss</title>
<action>samplerouter1/FreakOut</action>
<sort_order>1</sort_order>
</myitem1>
</children>
</mymenu1>
</menu>
</config>
應用程序\代碼\本地\ Ddevs \ Ebayaff \輔助\ Data.php
<?php
class Ddevs_Ebayaff_Helper_Data extends Mage_Core_Helper_Data
{
}
而且出現以下錯誤。
Fatal error: Class 'Mage_Ebayaff_Helper_Data' not found in /var/www/html/demoshop/app/Mage.php on line 547
需要在config.xml中將「samplerouter1」更改爲「ebayaff」 –