【发布时间】:2016-10-20 09:49:19
【问题描述】:
代码在后端添加了一个新菜单。但是我在新页面上有一个权限被拒绝的问题。我添加了控制器和助手。
我的 adminhtml.xml
<config>
<menu>
<mycustomtab module="colorswitch" translate="title">
<title>My Custom Tab</title>
<sort_order>100</sort_order>
<children>
<index module="colorswitch" translate="title">
<title>Index Action</title>
<sort_order>1</sort_order>
<action>adminhtml/colorswitch</action>
</index>
<list module="colorswitch" translate="title">
<title>List Action</title>
<sort_order>2</sort_order>
<action>adminhtml/custom/list</action>
</list>
</children>
</mycustomtab>
</menu>
<acl>
<resources>
<admin>
<children>
<custom translate="title" module="colorswitch">
<title>My Controller</title>
<sort_order>-100</sort_order>
<children>
<index translate="title">
<title>Index Action</title>
<sort_order>1</sort_order>
</index>
<list translate="title">
<title>List Action</title>
<sort_order>2</sort_order>
</list>
</children>
</custom>
</children>
</admin>
</resources>
</acl>
我不知道,问题出在哪里。
【问题讨论】:
-
请检查我的答案。