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.

main.php 1015B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. $params = array_merge(
  3. require(__DIR__ . '/../../common/config/params.php'),
  4. require(__DIR__ . '/../../common/config/params-local.php'),
  5. require(__DIR__ . '/params.php'),
  6. require(__DIR__ . '/params-local.php')
  7. );
  8. $common_config_main = array_merge(require(__DIR__ . '/../../common/config/main.php'));
  9. return [
  10. 'id' => 'app-backend',
  11. 'basePath' => dirname(__DIR__),
  12. 'controllerNamespace' => 'backend\controllers',
  13. 'defaultRoute' => 'site/index',
  14. 'bootstrap' => ['log'],
  15. 'modules' => [],
  16. 'components' => [
  17. 'log' => [
  18. 'traceLevel' => YII_DEBUG ? 3 : 0,
  19. 'targets' => [
  20. [
  21. 'class' => 'yii\log\FileTarget',
  22. 'levels' => ['error', 'warning'],
  23. ],
  24. ],
  25. ],
  26. 'errorHandler' => [
  27. 'errorAction' => 'site/error',
  28. ],
  29. 'urlManager' => $common_config_main['components']['urlManagerBackend'],
  30. ],
  31. 'params' => $params,
  32. ];