Skip to content

Instantly share code, notes, and snippets.

@YasinPatel
Last active July 19, 2017 07:19
Show Gist options
  • Save YasinPatel/9fa5127eac616c4522001d6a1a1c38d5 to your computer and use it in GitHub Desktop.
Save YasinPatel/9fa5127eac616c4522001d6a1a1c38d5 to your computer and use it in GitHub Desktop.
Generate custom crud template in yii2
// 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