2013-08-30 32 views
1

任何人都可以告诉我下面的xml标题节点实际上是什么吗?我很难找到相关信息。什么是“允许一切”在magento adminhtml xml中做什么?

<config> 
<acl> 
    <resources> 
     <all> 
      <title>Allow Everything</title> 
     </all> 
     <admin> 
      <children> 
       <system> 
        <children> 
         <config> 
          <children> 
           <tag_manager translate="title" module="googletagmanager"> 
            <title>Google Tag Manager</title> 
            <sort_order>0</sort_order> 
           </tag_manager> 
          </children> 
         </config> 
        </children> 
       </system> 
      </children> 
     </admin> 
    </resources> 
</acl> 

回答

5

标签用于生成在用户角色定义的All选项。
它在核心文件中很有用,但在自定义模块中没有任何价值。我真的不知道这是如何失控的。网络上的任何地方都有扩展名和代码示例,其中包含all标记。也许这只是另一种情况这就是他们的做法就像在升级脚本中使用$installer = $this一样。你可以删除它,看看发生了什么......没有。