main.php 830 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11
<?php
$rootDir = __DIR__ . '/../..';

$params = array_merge(
	require($rootDir . '/common/config/params.php'),
	require($rootDir . '/common/config/params-local.php'),
	require(__DIR__ . '/params.php'),
	require(__DIR__ . '/params-local.php')
);

return array(
Qiang Xue committed
12
	'id' => 'app-frontend',
13
	'basePath' => dirname(__DIR__),
14
	'vendorPath' => dirname(dirname(__DIR__)) . '/vendor',
15
	'controllerNamespace' => 'frontend\controllers',
16 17 18
	'modules' => array(
	),
	'components' => array(
19
		'db' => $params['components.db'],
20
		'cache' => $params['components.cache'],
21 22
		'user' => array(
			'class' => 'yii\web\User',
23
			'identityClass' => 'common\models\User',
24 25 26 27
		),
		'log' => array(
			'targets' => array(
				array(
Qiang Xue committed
28
					'class' => 'yii\log\FileTarget',
29 30 31 32 33 34 35
					'levels' => array('error', 'warning'),
				),
			),
		),
	),
	'params' => $params,
);