You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
1.1 KiB

  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. 'allowedIPs' => ['127.0.0.1'],
  20. 'generators' => [
  21. 'crud' => [
  22. 'class' => 'iron\generators\crud\Generator',
  23. 'templates' => [
  24. 'basicModel' => '@iron/generators/crud/default',
  25. ],
  26. ],
  27. 'model' => [
  28. 'class' => 'iron\generators\model\Generator',
  29. 'templates' => [
  30. 'basicModel' => '@iron/generators/model/default',
  31. ],
  32. ],
  33. ],
  34. ];
  35. }
  36. return $config;