Put RBAC, in the rules prescribed for the rules of specific rules. It does not allow in Gii, and it is logical, because for him I did not specify the rules, if I set up access to some controller like this:

'debug/default' => [ [ 'actions' => [], 'allow' => true, ], ], 

How can I get something Gii to open access?

    1 answer 1

    Try this: in the config / web.php file Find and replace

     if (YII_ENV_DEV) { // configuration adjustments for 'dev' environment $config['bootstrap'][] = 'debug'; $config['modules']['debug'] = [ 'class' => 'yii\debug\Module', 'allowedIPs' => ['127.0.0.1', '::1', $_SERVER['REMOTE_ADDR']], ]; $config['bootstrap'][] = 'gii'; $config['modules']['gii'] = [ 'class' => 'yii\gii\Module', 'allowedIPs' => ['127.0.0.1', '::1', $_SERVER['REMOTE_ADDR']], ]; } 

    Do not forget to replace $ _SERVER ['REMOTE_ADDR'] with your IP