mdmsoft / yii2-admin

Auth manager for Yii2 (RBAC Manager)
GNU General Public License v3.0
1.16k stars 574 forks source link

Avaliable lists in route #233

Open emanuelvieira opened 8 years ago

emanuelvieira commented 8 years ago

Hi, how can I show all actions controllers in Avaliable lists route?

for example I have StudentController, but the actions of this controller does not appear in avalable route list.

one help please!

mdmunir commented 8 years ago

all actions should automatically listed. If not, click button refresh (on the right of avaliable search input).

PS: try new release of yii2-admin (2.3 release today).

emanuelvieira commented 8 years ago

Hi mdmunir

thank you for the answer already upgraded to the new version , I have done as you suggested refresh , but still the same , I am using advanced template and version 3.0 yii2 -admin in the list available actions is shown only actions of the module user but the other is not shown in route menu.

my common/config 'components' => [ ... 'authManager' => [ 'class' => 'yii\rbac\DbManager', // or use 'yii\rbac\PhpManager' ], ], 'modules' => [ 'user' => [ 'class' => 'dektrium\user\Module', ], 'admin' => [ 'class' => 'mdm\admin\Module', ], ],

my frontend/config and backend/config like this: 'as access' => [ 'class' => 'mdm\admin\classes\AccessControl', 'allowActions' => [ 'site/', //'admin/', ] ],

mdmunir commented 8 years ago

look your debug panel. What you see in log panel?

emanuelvieira commented 8 years ago

screencapture

DiegoGallegos4 commented 7 years ago

The error is related to kartik/yii2-grid not install. Dumb error but that is what it is.

CaoYuming-git commented 5 years ago

I encountered the same problem. After looking at the code of yii-admin, I found that it was scandir () is desabled. You can modify php.ini to solve this problem.