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

53 行
1.5KB

  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-frontend',
  11. 'basePath' => dirname(__DIR__),
  12. 'bootstrap' => ['log'],
  13. 'controllerNamespace' => 'frontend\controllers',
  14. 'components' => [
  15. /*'request' => [
  16. 'baseUrl' => '/new/',
  17. ],*/
  18. 'user' => [
  19. 'identityClass' => 'common\models\User',
  20. 'enableAutoLogin' => true,
  21. ],
  22. 'log' => [
  23. 'traceLevel' => YII_DEBUG ? 3 : 0,
  24. 'targets' => [
  25. [
  26. 'class' => 'yii\log\FileTarget',
  27. 'levels' => ['error', 'warning'],
  28. ],
  29. ],
  30. ],
  31. 'errorHandler' => [
  32. 'errorAction' => 'site/error',
  33. ],
  34. 'assetManager' => [
  35. 'bundles' => [
  36. 'yii\web\JqueryAsset' => [
  37. 'sourcePath' => null, // do not publish the bundle
  38. 'js' => [
  39. 'https://code.jquery.com/jquery-1.11.2.min.js'
  40. ]
  41. ],
  42. ],
  43. ],
  44. 'view' => [
  45. 'class' => 'common\components\MyView',
  46. ],
  47. 'urlManager' => $common_config_main['components']['urlManagerFrontend'],
  48. ],
  49. 'params' => $params,
  50. ];