web.php 682 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. return array(
  3. 'id' => 'bootstrap',
  4. 'basePath' => dirname(__DIR__),
  5. 'preload' => array('debug'),
  6. 'modules' => array(
  7. 'debug' => array(
  8. 'class' => 'yii\debug\Module',
  9. 'enabled' => YII_ENV_DEV,
  10. ),
  11. ),
  12. 'components' => array(
  13. 'cache' => array(
  14. 'class' => 'yii\caching\FileCache',
  15. ),
  16. 'user' => array(
  17. 'identityClass' => 'app\models\User',
  18. ),
  19. 'errorHandler' => array(
  20. 'errorAction' => 'site/error',
  21. ),
  22. 'log' => array(
  23. 'traceLevel' => YII_DEBUG ? 3 : 0,
  24. 'targets' => array(
  25. array(
  26. 'class' => 'yii\log\FileTarget',
  27. 'levels' => array('error', 'warning'),
  28. ),
  29. ),
  30. ),
  31. ),
  32. 'params' => require(__DIR__ . '/params.php'),
  33. );