You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
978 B
41 lines
978 B
12 years ago
|
<?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(
|
||
12 years ago
|
'id' => 'app-backend',
|
||
12 years ago
|
'basePath' => dirname(__DIR__),
|
||
12 years ago
|
'vendorPath' => dirname(dirname(__DIR__)) . '/vendor',
|
||
12 years ago
|
'preload' => array('log'),
|
||
12 years ago
|
'controllerNamespace' => 'backend\controllers',
|
||
12 years ago
|
'modules' => array(
|
||
|
),
|
||
|
'components' => array(
|
||
12 years ago
|
'db' => $params['components.db'],
|
||
12 years ago
|
'cache' => $params['components.cache'],
|
||
12 years ago
|
'user' => array(
|
||
|
'class' => 'yii\web\User',
|
||
12 years ago
|
'identityClass' => 'common\models\User',
|
||
12 years ago
|
),
|
||
|
'assetManager' => array(
|
||
|
'bundles' => require(__DIR__ . '/assets.php'),
|
||
|
),
|
||
|
'log' => array(
|
||
|
'class' => 'yii\logging\Router',
|
||
|
'targets' => array(
|
||
|
array(
|
||
|
'class' => 'yii\logging\FileTarget',
|
||
|
'levels' => array('error', 'warning'),
|
||
|
),
|
||
|
),
|
||
|
),
|
||
|
),
|
||
|
'params' => $params,
|
||
|
);
|