我在管理面板中创建了一个自定义模块。我得到404页面。我的模块处于活动状态,但我收到404页面。
我的config.xml文件:
<?xml version="1.0"?>
<config>
<modules>
<Blazedream_VendorComplaints>
<version>0.1.0</version>
</Blazedream_VendorComplaints>
</modules>
<frontend>
<routers>
<vendorcomplaints>
<use>standard</use>
<args>
<module>Blazedream_VendorComplaints</module>
<frontName>vendorcomplaints</frontName>
</args>
</vendorcomplaints>
</routers>
<layout>
<updates>
<vendorcomplaints>
<file>vendorcomplaints.xml</file>
</vendorcomplaints>
</updates>
</layout>
</frontend>
<global>
<helpers>
<vendorcomplaints>
<class>Blazedream_VendorComplaints_Helper</class>
</vendorcomplaints>
</helpers>
<blocks>
<vendorcomplaints>
<class>Blazedream_VendorComplaints_Block</class>
</vendorcomplaints>
</blocks>
<models>
<vendorcomplaints>
<class>Blazedream_VendorComplaints_Model</class>
<resourceModel>vendorcomplaints_mysql4</resourceModel>
</vendorcomplaints>
<vendorcomplaints_mysql4>
<class>Blazedream_VendorComplaints_Model_Mysql4</class>
<entities>
<complaints>
<table>vendor_complaints</table>
</complaints>
</entities>
</vendorcomplaints_mysql4>
</models>
<resources>
<vendorcomplaints_setup>
<setup>
<module>Blazedream_VendorComplaints</module>
</setup>
<connection>
<use>core_setup</use>
</connection>
</vendorcomplaints_setup>
<vendorcomplaints_write>
<connection>
<use>core_write</use>
</connection>
</vendorcomplaints_write>
<vendorcomplaints_read>
<connection>
<use>core_read</use>
</connection>
</vendorcomplaints_read>
</resources>
</global>
<admin>
<routers>
<vendorcomplaints>
<use>admin</use>
<args>
<module>Blazedream_VendorComplaints</module>
<frontName>vendorcomplaints</frontName>
</args>
</vendorcomplaints>
</routers>
</admin>
<adminhtml>
<menu>
<marketplace>
<children>
<vendorcomplaints module="vendorcomplaints">
<title>Manage Complaints</title>
<sort_order>0</sort_order>
<action>admin_vendorcomplaints/adminhtml_complaints</action>
</vendorcomplaints>
</children>
</marketplace>
</menu>
<acl>
<resources>
<all>
<title>Allow Everything</title>
</all>
<admin>
<children>
<vendorcomplaints>
<title>Complaints Module</title>
<sort_order>200</sort_order>
</vendorcomplaints>
</children>
</admin>
</resources>
</acl>
<layout>
<updates>
<vendorcomplaints>
<file>vendorcomplaints.xml</file>
</vendorcomplaints>
</updates>
</layout>
</adminhtml>
</config>
我不知道我在哪里做错了。任何人都可以帮我解决这个问题。 我是magento的新手。
答案 0 :(得分:0)
首先你应该学习自定义模块。
查看这些博客。
create-configuration-for-your-magento-extension
custom_magento_system_configuration
根据您的代码,您可能会错过ACL实现。