前几天,我应用了补丁5994,它使我构建的模块的admin部分抛出了404。该模块虽然在前端很好。
它是Magento 1.8.1.0,回退了我的提交后,肯定是补丁5994出现了所有错误。
还有其他人遇到过同样的问题吗?
以下是我怀疑包含答案的模块的config.xml文件:
<config>
<modules>
<Company_Playzone>
<version>0.1.0</version>
</Company_Playzone>
</modules>
<frontend>
<routers>
<playzone>
<use>standard</use>
<args>
<module>Company_Playzone</module>
<frontName>playzone</frontName>
</args>
</playzone>
</routers>
<layout>
<updates>
<playzone>
<file>playzone.xml</file>
</playzone>
</updates>
</layout>
</frontend>
<adminhtml>
<layout>
<updates>
<playzone>
<file>playzone.xml</file>
</playzone>
</updates>
</layout>
<acl>
<resources>
<all>
<title>Allow Everything</title>
</all>
<admin>
<children>
<playzone>
<title>Play Zone</title>
<sort_order>10</sort_order>
</playzone>
</children>
</admin>
</resources>
</acl>
<menu>
<cms>
<children>
<playzone_adminform module="playzone">
<title>Play Zone</title>
<children>
<activity module="playzone">
<title>Activities</title>
<action>playzone/adminhtml_activity</action>
</activity>
<category module="playzone">
<title>Categories</title>
<action>playzone/adminhtml_category</action>
</category>
<competition module="playzone">
<title>Competitions</title>
<action>playzone/adminhtml_competition</action>
</competition>
</children>
</playzone_adminform>
</children>
</cms>
</menu>
</adminhtml>
<global>
<helpers>
<playzone>
<class>Company_Playzone_Helper</class>
</playzone>
</helpers>
<blocks>
<playzone>
<class>Company_Playzone_Block</class>
</playzone>
</blocks>
<models>
<playzone>
<class>Company_Playzone_Model</class>
<resourceModel>playzone_resource</resourceModel>
</playzone>
<playzone_resource>
<class>Company_Playzone_Model_Resource</class>
<entities>
<activity>
<table>playzone_activity</table>
</activity>
<category>
<table>playzone_category</table>
</category>
<competition>
<table>playzone_competition</table>
</competition>
</entities>
</playzone_resource>
</models>
<resources>
<playzone_setup>
<setup>
<module>Company_Playzone</module>
<class>Company_Playzone_Model_Resource_Setup</class>
</setup>
</playzone_setup>
<playzone_write>
<connection>
<use>core_write</use>
</connection>
</playzone_write>
<playzone_read>
<connection>
<use>core_read</use>
</connection>
</playzone_read>
</resources>
</global>
</config>
进行模块测试是否有破损...
—
Fiasco Labs