您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

35 行
1015B

  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. ];