main-local.php 768 B

123456789101112131415161718192021222324252627282930313233
  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' => 'Q-XSjZ7zo9yAb94nLHF0E0gJV8Rx1sEO',
  7. ],
  8. 'urlManager' => [
  9. 'enablePrettyUrl' => true,
  10. 'showScriptName' => false,
  11. 'rules' => [
  12. ],
  13. ] ,
  14. ],
  15. ];
  16. if (!YII_ENV_TEST) {
  17. // configuration adjustments for 'dev' environment
  18. // $config['bootstrap'][] = 'debug';
  19. // $config['modules']['debug'] = [
  20. // 'class' => 'yii\debug\Module',
  21. // ];
  22. $config['bootstrap'][] = 'gii';
  23. $config['modules']['gii'] = [
  24. 'class' => 'yii\gii\Module',
  25. ];
  26. }
  27. return $config;