2013-06-10 4 views
0

Как мы можем установить разрешение настраиваемого модуля в magento?Set Разрешение модуля в magento

Я установил модуль и попытаюсь установить разрешение в админпанели, но модуль не отображается в списке ролей. Но его не работает. Пожалуйста, помогите.

ответ

0

Ваш ACL должен быть установлен в файле config.xml OR в файле adminhtml.xml (если в файле config.xml заключить в <adminhtml>).

<acl> 
     <resources> 
      <admin> 
       <children> 
        <your_mod_menu translate="title" module="your_mod"> 
         <title>MOD TITLE</title> 
         <sort_order>100</sort_order> 
         <children> 
          <your_mod_news translate="title" module="your_mod"> 
           <title> Manage Mod</title> 
           <sort_order>0</sort_order> 
          </your_mod_news> 
          <your_mod_store translate="title" module="your_mod"> 
           <title>Store Settings</title> 
           <sort_order>10</sort_order> 
          </your_mod_store> 
          <your_mod_sub translate="title" module="your_mod"> 
           <title>Manage Subscribers</title> 
           <sort_order>20</sort_order> 
          </your_mod_sub> 
         </children> 
        </your_mod_menu> 
       </children> 
      </admin> 
     </resources> 
    </acl> 
Смежные вопросы