Skip to content

hendrasyp/Yii2CustomCrudGenerator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Yii2CustomCrudGenerator

Konfigurasi untuk membuat Custom Crud Generator

Configuration

First Step

@app/config/web.php


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

  $config['bootstrap'][] = 'gii';
  $config['modules']['gii'] = [
    'class' => 'yii\gii\Module',
    'generators' => [
      'crud' => [
				'class' => 'yii\gii\generators\crud\Generator',
				'templates' => ['mycustoms' => '@app/components/Generators/crud/mycustoms']
			] // end of crud
		],
  ];
}

return $config; ?> 

Last

Copy this repository to component's directory

How it works ?

Go to gii, create some or one crud, and see the result :)

Releases

No releases published

Packages

No packages published

Languages