|
|
<?php
|
|
|
$params = array_merge(
|
|
|
require(__DIR__ . '/../../common/config/params.php'),
|
|
|
require(__DIR__ . '/../../common/config/params-local.php'),
|
|
|
(@include(__DIR__ . '/../../common/config/params-local.php'))?:[],
|
|
|
require(__DIR__ . '/params.php'),
|
|
|
require(__DIR__ . '/params-local.php')
|
|
|
(@include(__DIR__ . '/params-local.php'))?:[]
|
|
|
);
|
|
|
|
|
|
return [
|
...
|
...
|
@@ -14,6 +14,8 @@ return [ |
|
|
'components' => [
|
|
|
'request' => [
|
|
|
'csrfParam' => '_csrf-frontend',
|
|
|
// !!! insert a secret key in the following (if it is empty) - this is required by cookie validation
|
|
|
'cookieValidationKey' => 'hNWgnTak0P0f9VAiC-2UQZTrMtjzpLoN',
|
|
|
],
|
|
|
'user' => [
|
|
|
'identityClass' => 'common\models\User',
|
...
|
...
|
@@ -44,6 +46,13 @@ return [ |
|
|
],
|
|
|
],
|
|
|
*/
|
|
|
'db' => [
|
|
|
'class' => 'yii\db\Connection',
|
|
|
'dsn' => 'mysql:host=localhost;dbname=yii2advanced',
|
|
|
'username' => 'root',
|
|
|
'password' => '',
|
|
|
'charset' => 'utf8',
|
|
|
],
|
|
|
],
|
|
|
'params' => $params,
|
|
|
]; |
...
|
...
|
|