main-local.php 787 B

123456789101112131415161718192021222324252627282930
  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' => '3i18DOM7ZDqqQfr2S0hj0c60wFxxTb56',
  7. 'parsers' => [
  8. 'application/json' => 'yii\web\JsonParser',
  9. ],
  10. ],
  11. ],
  12. ];
  13. if (!YII_ENV_TEST) {
  14. // configuration adjustments for 'dev' environment
  15. $config['bootstrap'][] = 'debug';
  16. $config['modules']['debug'] = [
  17. 'class' => 'yii\debug\Module',
  18. 'allowedIPs' => ['*'],
  19. ];
  20. $config['bootstrap'][] = 'zhhHuahuibaoGii';
  21. $config['modules']['zhhHuahuibaoGii'] = [
  22. 'class' => 'yii\gii\Module',
  23. 'allowedIPs' => ['*'],
  24. ];
  25. }
  26. return $config;