magento配置下的自定义选项卡给出404页面?

时间:2013-03-26 10:34:01

标签: php magento

我正在Magento开发一个扩展程序,其中我在管理部分的tab general下添加了system->configuration,但我遇到的问题是我何时成为点击该标签,它会给我404 error。任何人都可以帮我解决这个问题吗?

以下是我的config.xml代码:

<?xml version="1.0"?>
<config>
<!-- turn on our module, required for install support -->
<modules>
    <Gowebbaby_Eventcalendar>
        <version>0.1.0</version>
    </Gowebbaby_Eventcalendar>
</modules>
<frontend>
<routers>
    <eventcalendar>
        <use>standard</use>
        <args>
            <module>Gowebbaby_Eventcalendar</module>
            <frontName>eventcalendar</frontName>
        </args>
    </eventcalendar>
</routers>
<layout>
    <updates>
        <eventcalendar>
            <file>eventcalendar.xml</file>
        </eventcalendar>
    </updates>
</layout>
</frontend>
<admin>
<routers>
    <eventcalendar>
        <use>admin</use>
        <args>
            <module>Gowebbaby_Eventcalendar</module>
            <frontName>eventcalendar</frontName>
        </args>
    </eventcalendar>
</routers>
</admin>
<adminhtml>
<menu>
    <menu2 translate="title" module="eventcalendar">
        <title>Event Calendar</title>
        <sort_order>999</sort_order>
        <children>
            <menuitem1 module="eventcalendar">
                <title>Calendar</title>
                <action>eventcalendar/adminhtml_calendar</action>
            </menuitem1>
            <menuitem2 module="eventcalendar">
                <title>Email Settings</title>
                <action>eventcalendar/adminhtml_emailsettings</action>
            </menuitem2>
        </children>
    </menu2>
</menu>
<acl>
    <resources>
        <admin>
            <children>
                <menu2 translate="title" module="eventcalendar">
                    <title>Event Calendar</title>
                    <sort_order>999</sort_order>
                    <children>
                        <menuitem1>
                            <title>Calendar</title>
                        </menuitem1>
                        <menuitem2>
                            <title>Email Settings</title>
                        </menuitem2>
                    </children>
                </menu2>
            </children>
        </admin>
    </resources>
</acl>
</adminhtml>
<global>
<!-- turn on models -->
<models>
    <eventcalendar>
        <class>Gowebbaby_Eventcalendar_Model</class>
        <resourceModel>eventcalendar_mysql4</resourceModel>
    </eventcalendar>
    <eventcalendar_mysql4>
        <class>Gowebbaby_Eventcalendar_Model_Mysql4</class>
        <entities>
            <eventcalendar>
                <table>eventcalendar</table>
            </eventcalendar>
        </entities>
    </eventcalendar_mysql4>
</models>
<!-- turn on models -->

<!-- turn on database connections -->
<resources>
<!-- setup is needed for automatic installation -->
    <eventcalendar_setup>
        <setup>
            <module>Gowebbaby_Eventcalendar</module>
        </setup>
        <connection>
            <use>core_setup</use>
        </connection>
    </eventcalendar_setup>
    <eventcalendar_write>
        <connection>
            <use>core_write</use>
        </connection>
    </eventcalendar_write>
    <eventcalendar_read>
        <connection>
            <use>core_read</use>
        </connection>
    </eventcalendar_read>
</resources>

<blocks>
    <eventcalendar>
        <class>Gowebbaby_Eventcalendar_Block</class>
    </eventcalendar>
</blocks>

<helpers>
    <eventcalendar>
        <class>Gowebbaby_Eventcalendar_Helper</class>
    </eventcalendar>
</helpers>

<layout>
    <eventcalendar>
        <file>eventcalendar.xml</file>
    </eventcalendar>
</layout>
</global>

以下是我的system.xml代码:

<?xml version="1.0"?>
<config>
<sections>
    <reminder_settings translate="label" module="eventcalendar">
        <class>separator-top</class>
        <label>Event Calendar - Reminder Settings</label>
        <tab>general</tab>
        <sort_order>100</sort_order>
        <show_in_default>1</show_in_default>
        <show_in_website>1</show_in_website>
        <show_in_store>1</show_in_store>
        <groups>
            <reminder_settings_option translate="label">
                <label>Event Calendar - Reminder Settings</label>
                <frontend_type>text</frontend_type>
                <sort_order>10</sort_order>
                <show_in_default>1</show_in_default>
                <show_in_website>1</show_in_website>
                <show_in_store>1</show_in_store>
                <fields>
                    <reminder_days translate="label"> <label>Send Reminder Email (No. of days)</label>
                        <frontend_type>text</frontend_type>
                        <sort_order>1</sort_order>
                        <show_in_default>1</show_in_default>
                        <show_in_website>1</show_in_website>
                        <show_in_store>1</show_in_store>
                    </reminder_days>
                </fields>
            </reminder_settings_option>
        </groups>
    </reminder_settings>
</sections>
</config>

以下是我的adminhtml.xml代码:

<?xml version="1.0"?>
<config>
<acl>
    <resources>
        <admin>
            <children>
                <system>
                    <children>
                        <config>
                            <children>
                                <reminder_settings translate="label" module="eventcalendar">
                                    <title>Event Calendar - Reminder Settings</title>
                                </reminder_settings>
                            </children>
                        </config>
                    </children>
                </system>
            </children>
        </admin>
    </resources>   
</acl>
</config>

有人可以在这里找出问题吗?

提前致谢

0 个答案:

没有答案