web.php 709 Bytes
Newer Older
Qiang Xue committed
1
<?php
2

Qiang Xue committed
3
return array(
Qiang Xue committed
4
	'id' => 'bootstrap',
Qiang Xue committed
5
	'basePath' => dirname(__DIR__),
6 7 8 9 10 11 12
	'preload' => array('debug'),
	'modules' => array(
		'debug' => array(
			'class' => 'yii\debug\Module',
			'enabled' => YII_DEBUG && YII_ENV === 'dev',
		),
	),
Qiang Xue committed
13 14 15 16 17 18 19
	'components' => array(
		'cache' => array(
			'class' => 'yii\caching\FileCache',
		),
		'user' => array(
			'class' => 'yii\web\User',
			'identityClass' => 'app\models\User',
Qiang Xue committed
20 21 22 23
		),
		'assetManager' => array(
			'bundles' => require(__DIR__ . '/assets.php'),
		),
Qiang Xue committed
24 25
		'log' => array(
			'targets' => array(
Qiang Xue committed
26
				array(
Qiang Xue committed
27
					'class' => 'yii\log\FileTarget',
Qiang Xue committed
28 29 30 31
					'levels' => array('error', 'warning'),
				),
			),
		),
Qiang Xue committed
32
	),
33
	'params' => require(__DIR__ . '/params.php'),
Zander Baldwin committed
34
);