Skip to content

Commit

Permalink
增加gii配置
Browse files Browse the repository at this point in the history
  • Loading branch information
liulipeng committed Apr 9, 2018
1 parent 959dd22 commit 890f6a7
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions environments/dev/backend/config/main-local.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,32 @@
$config['bootstrap'][] = 'gii';
$config['modules']['gii'] = [
'class' => 'yii\gii\Module',
'generators' => [
'model' => [
'class' => 'izyue\admin\generators\model\Generator',
'templates' => [
'default' => '@izyue/admin/generators/model/default',
]
],
'crud' => [
'class' => 'izyue\admin\generators\crud\Generator',
'templates' => [
'default' => '@izyue/admin/generators/crud/default',
]
],
'controller' => [
'class' => 'izyue\admin\generators\controller\Generator',
'templates' => [
'default' => '@izyue/admin/generators/controller/default',
]
],
'form' => [
'class' => 'izyue\admin\generators\form\Generator',
'templates' => [
'default' => '@izyue/admin/generators/form/default',
]
],
],
];
}

Expand Down

0 comments on commit 890f6a7

Please sign in to comment.