Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/magento/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
当我在管理中访问角色权限时,Magento正在添加Mage作为类前缀_Magento - Fatal编程技术网

当我在管理中访问角色权限时,Magento正在添加Mage作为类前缀

当我在管理中访问角色权限时,Magento正在添加Mage作为类前缀,magento,Magento,准入权限出现致命错误:致命错误:在第516行的/path/to/magento/app/Mage.php中找不到类“Mage\u Mypack\u Mymodule\u Helper\u Data” My config.xml <?xml version="1.0"?> <config> <modules> <Mypack_Mymodule> <version>0.1.0</vers

准入权限出现致命错误:
致命错误:在第516行的/path/to/magento/app/Mage.php中找不到类“Mage\u Mypack\u Mymodule\u Helper\u Data”

My config.xml

<?xml version="1.0"?>
<config>
    <modules>
        <Mypack_Mymodule>
            <version>0.1.0</version>
        </Mypack_Mymodule>
    </modules>
    <global>
        <models>
            <mymodule>
                <class>Mypack_Mymodule_Model</class>
            </mymodule>
        </models>
        <helpers>
            <mypack_mymodule>
                <class>Mypack_Mymodule_Helper</class>
            </mypack_mymodule>
        </helpers>
    </global>
</config> 

0.1.0
Mypack\u Mymodule\u模型
Mypack\u Mymodule\u帮助程序
My admin.xml

<?xml version="1.0"?>
<config>
    <acl>
        <resources>
            <admin>
                <children>
                    <system>
                        <children>
                            <config>
                                <children>
                                    <mmmymodle translate="title" module="Mypack_Mymodle">
                                        <title>Mu module permission</title>
                                    </mmmymodle>
                                </children>
                            </config>
                        </children>
                    </system>
                </children>
            </admin>
        </resources>
    </acl>
</config>

Mu模块权限

应该是

<mmmymodle translate="title" module="mypack_mymodule">

此外,您应该检查模块是否已启用。(
app/etc/modules/Mypack\u Mymodule.xml

<mmmymodle translate="title" module="mypack_mymodule">