我需要这个用于我正在处理的自定义模块。因此,例如,我有在配置菜单中创建选项卡的主模块:
<config>
<acl>
<resources>
<admin>
<children>
<system>
<children>
<config>
<children>
<mymodule translate="title" module="mymodule_all">
<title>My Module</title>
</mymodule>
</children>
</config>
</children>
</system>
</children>
</admin>
</resources>
</acl>
</config>
然后我有属于此选项卡的 mu 子模块:
<config>
<acl>
<resources>
<admin>
<children>
<system>
<children>
<config>
<children>
<mymodule>
<children>
<submodule translate="title" module="submodule">
<title>Sub Module</title>
</submodule>
</children>
</mymodule>
</children>
</config>
</children>
</system>
</children>
</admin>
</resources>
</acl>
</config>
因此,对于上面的示例配置 - 子模块在角色资源配置中不可见。
从子模块 acl 中删除有点帮助,它变得可见,但它现在与 mymodule 处于同一级别,这不是我想要的。
Magento 在配置部分是否只允许一级 acl?或者也许我做错了什么?
谢谢。