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.

50 rindas
1.4KB

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