return [
'id' => 'app-backend',
'basePath' => dirname(__DIR__),
'controllerNamespace' => 'backend\controllers',
'bootstrap' => ['log','gii'],
'modules' => [
'gii' => [
'class' => 'yii\gii\Module',
'allowedIPs' => ['127.0.0.1', '::1']
],
],
'rules' => [
...
'<module:gii>/<controller:\w+>/<action:\w+>' => '<module>/<controller>/<action>',
...
],