Last active
July 19, 2017 07:19
-
-
Save YasinPatel/9fa5127eac616c4522001d6a1a1c38d5 to your computer and use it in GitHub Desktop.
Generate custom crud template in yii2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// To create custom admin layout template , Go to config/web.php and add below lines | |
'modules' => [ | |
'gii' => [ | |
'class' => 'yii\gii\Module', //adding gii module | |
'allowedIPs' => ['127.0.0.1','192.168.1.*'], //allowing ip's | |
'generators' => [ | |
'crud' => [ // generator name | |
'class' => 'yii\gii\generators\crud\Generator', // generator class | |
'templates' => [ //setting for out templates | |
'adminLte' => '@app/adminLte/crud/default', // template name => path to template | |
] | |
] | |
], | |
], | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment