magento - adminhtml tag in config.xml file does not work -
i new magento , making custom module , want work on admin end after installing extension error:
fatal error: class 'submitdigital_customlogo_helper_data' not found in /var/zpanel/hostdata/zadmin/public_html/unisport_com/app/mage.php on line 547
after insatalling extension when clear cashe give me error. after somestudy found error due file @ path:
app/code/local/submitdigital/customlogo/etc/config.xml <?xml version="1.0"?> <config> <modules> <submitdigital_customlogo> <version>0.1.0</version> </submitdigital_customlogo> </modules> <global> <helpers> <customlogo> <class>submitdigital_customlogo_helper</class> </customlogo> </helpers> <blocks> <customlogo> <class>submitdigital_customlogo_block</class> </customlogo> </blocks> <models> <customlogo> <class>submitdigital_customlogo_model</class> <resourcemodel>customlogo_mysql4</resourcemodel> </customlogo> <customlogo_mysql4> <class>submitdigital_customlogo_model_mysql4</class> <entities> <customlogo> <table>customlogo</table> </customlogo> </entities> </customlogo_mysql4> </models> <resources> <customlogo_setup> <setup> <module>submitdigital_customlogo</module> <class>mage_eav_model_entity_setup</class> </setup> <connection> <use>core_setup</use> </connection> </customlogo_setup> <customlogo_write> <connection> <use>core_write</use> </connection> </customlogo_write> <customlogo_read> <connection> <use>core_read</use> </connection> </customlogo_read> </resources> </global> <admin> <routers> <admin_customlogo> <use>admin</use> <args> <module>submitdigital_customlogo</module> <frontname>admin_customlogo</frontname> </args> </admin_customlogo> </routers> </admin> <adminhtml> <menu> <customlogo module="customlogo"> <title>submitdigital</title> <sort_order>100</sort_order> <children> <customlogo module="customlogo"> <title>manage customlogo</title> <sort_order>0</sort_order> <action>customlogo/adminhtml_customlogo</action> </customlogo> </children> </customlogo> </menu> <acl> <resources> <all> <title>allow everything</title> </all> <admin> <children> <customlogo translate="title" module="customlogo"> <title>submitdigital</title> <sort_order>1000</sort_order> <children> <customlogo translate="title"> <title>manage customlogo</title> <sort_order>0</sort_order> </customlogo> </children> </customlogo> </children> </admin> </resources> </acl> <layout> <updates> <customlogo> <file>customlogo.xml</file> </customlogo> </updates> </layout> </adminhtml> <frontend> <routers> <customlogo> <use>standard</use> <args> <module>submitdigital_customlogo</module> <frontname>customlogo</frontname> </args> </customlogo> </routers> <layout> <updates> <customlogo> <file>customlogo.xml</file> </customlogo> </updates> </layout> </frontend> </config>
all goes file when add <adminhtml>...</adminhtml>
in file gives above error , hence not able see @ admin end.
please
here customlogo.xml
<?xml version="1.0"?> <layout version="0.1.0"> <customlogo_adminhtml_customlogo_index> <reference name="content"> <block type="customlogo/adminhtml_customlogo" name="customlogo" /> </reference> </customlogo_adminhtml_customlogo_index> </layout>
you have create helper class fix issue.
app/code/local/submitdigital/customlogo/helper/data.php
class submitdigital_customlogo_helper_data extends mage_core_helper_abstract { }
you have following code call helper
<customlogo module="customlogo">
here
module
parameter used call helper translation.
Comments
Post a Comment