Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

47 rindas
1.2KB

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