main.php 833 Bytes
Newer Older
Qiang Xue committed
1
<?php
2
$params = require(__DIR__ . '/params.php');
Qiang Xue committed
3
return array(
Qiang Xue committed
4
	'id' => 'bootstrap',
Qiang Xue committed
5
	'basePath' => dirname(__DIR__),
Qiang Xue committed
6
	'preload' => array('log'),
7
	'controllerNamespace' => 'app\controllers',
Qiang Xue committed
8
	'modules' => array(
Qiang Xue committed
9 10 11
//		'debug' => array(
//			'class' => 'yii\debug\Module',
//		)
Qiang Xue committed
12
	),
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 26
		'log' => array(
			'class' => 'yii\logging\Router',
			'targets' => array(
Qiang Xue committed
27
				array(
Qiang Xue committed
28 29 30
					'class' => 'yii\logging\FileTarget',
					'levels' => array('error', 'warning'),
				),
Qiang Xue committed
31 32 33
//				array(
//					'class' => 'yii\logging\DebugTarget',
//				)
Qiang Xue committed
34 35
			),
		),
Qiang Xue committed
36
	),
37
	'params' => $params,
Zander Baldwin committed
38
);