我正在尝试使用在此处找到的 moduleCreator 工具构建管理模块
即使是开箱即用,当我导航到页面时它也会抛出 404。我已禁用现金并注销/登录。谷歌搜索的解决方案都没有解决这个问题。我正在运行 1.7.2
关键文件如下所示:
配置文件
<?xml version="1.0"?>
<config>
<modules>
<Jinkou_MobileAdmin>
<version>0.1.0</version>
</Jinkou_MobileAdmin>
</modules>
<global>
<helpers>
<mobileadmin>
<class>Jinkou_MobileAdmin_Helper</class>
</mobileadmin>
</helpers>
<blocks>
<mobileadmin>
<class>Jinkou_MobileAdmin_Block</class>
</mobileadmin>
</blocks>
</global>
<admin>
<routers>
<mobileadmin>
<use>admin</use>
<args>
<module>Jinkou_MobileAdmin</module>
<frontName>mobileadmin</frontName>
</args>
</mobileadmin>
</routers>
</admin>
<adminhtml>
<menu>
<mobileadmin module="mobileadmin">
<title>MobileAdmin</title>
<sort_order>100</sort_order>
<children>
<mobileadminbackend module="mobileadmin">
<title>Order Processing</title>
<sort_order>0</sort_order>
<action>mobileadmin/adminhtml_mobileadminbackend</action>
</mobileadminbackend>
</children>
</mobileadmin>
</menu>
<acl>
<resources>
<all>
<title>Allow Everything</title>
</all>
<admin>
<children>
<mobileadmin translate="title" module="mobileadmin">
<title>MobileAdmin</title>
<sort_order>1000</sort_order>
<children>
<mobileadminbackend translate="title">
<title>Order Processing</title>
</mobileadminbackend>
</children>
</mobileadmin>
</children>
</admin>
</resources>
</acl>
<layout>
<updates>
<mobileadmin>
<file>mobileadmin.xml</file>
</mobileadmin>
</updates>
</layout>
</adminhtml>
</config>
MobileBackendController.php
<?php
class Jinkou_MobileAdmin_Adminhtml_MobileAdminbackendController extends Mage_Adminhtml_Controller_Action
{
public function indexAction()
{
$this->loadLayout();
$this->_title($this->__("Order Processing"));
$this->renderLayout();
}
}
MobileAdminbackendController.php 似乎没有加载,因为我可以删除该类而不抛出异常。