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 1.2KB

8 yıl önce
12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. ];