main-local.php 828 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' => 'o83yA7NsYp3sNfG9AjO8hbXq5ejTAvyt',
  7. ],
  8. ],
  9. ];
  10. if (YII_ENV_DEV) {
  11. // configuration adjustments for 'dev' environment
  12. $config['bootstrap'][] = 'debug';
  13. $config['modules']['debug'] = [
  14. 'class' => 'yii\debug\Module',
  15. 'panels' => [
  16. 'httpClient' => ['class' => 'yii\httpclient\debug\HttpClientPanel'],
  17. ],
  18. // 'allowedIPs' => ['127.0.0.1', '192.168.1.*'],
  19. ];
  20. $config['bootstrap'][] = 'gii';
  21. $config['modules']['gii'] = [
  22. 'class' => 'yii\gii\Module',
  23. // 'allowedIPs' => ['127.0.0.1', '192.168.1.*'],
  24. ];
  25. }
  26. return $config;