main.php 713 Bytes
Newer Older
1
<?php
2 3 4 5 6 7 8
$params = array_merge(
	require(__DIR__ . '/../../common/config/params.php'),
	require(__DIR__ . '/../../common/config/params-local.php'),
	require(__DIR__ . '/params.php'),
	require(__DIR__ . '/params-local.php')
);

9
return [
Qiang Xue committed
10
	'id' => 'app-frontend',
11
	'basePath' => dirname(__DIR__),
12
	'controllerNamespace' => 'frontend\controllers',
13 14
	'components' => [
		'user' => [
15
			'identityClass' => 'common\models\User',
16
			'enableAutoLogin' => true,
17 18
		],
		'log' => [
19
			'traceLevel' => YII_DEBUG ? 3 : 0,
20 21
			'targets' => [
				[
Qiang Xue committed
22
					'class' => 'yii\log\FileTarget',
23 24 25 26 27
					'levels' => ['error', 'warning'],
				],
			],
		],
		'errorHandler' => [
28
			'errorAction' => 'site/error',
29 30
		],
	],
31
	'params' => $params,
32
];