main-local.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. $config = [
  3. 'components' => [
  4. 'request' => [
  5. // !!! insert a secret key in the following (if it is empty) - this is required by cookie validation
  6. 'cookieValidationKey' => '',
  7. ],
  8. ],
  9. ];
  10. if (!YII_ENV_TEST) {
  11. // configuration adjustments for 'dev' environment
  12. $config['bootstrap'][] = 'debug';
  13. $config['modules']['debug'] = [
  14. 'class' => 'yii\debug\Module',
  15. ];
  16. $config['bootstrap'][] = 'gii';
  17. $config['modules']['gii'] = [
  18. 'class' => 'yii\gii\Module',
  19. 'generators' => [
  20. 'crud' => [
  21. 'class' => \common\components\gii\crud\Generator::class,
  22. 'templates' => [
  23. 'rageframe' => '@common/components/gii/crud/merchant',
  24. 'default' => '@vendor/yiisoft/yii2-gii/src/generators/crud/default',
  25. ]
  26. ],
  27. 'model' => [
  28. 'class' => \yii\gii\generators\model\Generator::class,
  29. 'templates' => [
  30. 'rageframe' => '@common/components/gii/model/merchant',
  31. 'default' => '@vendor/yiisoft/yii2-gii/src/generators/model/default',
  32. ]
  33. ],
  34. ],
  35. ];
  36. }
  37. return $config;
粤ICP备19079148号