Skip to content

Commit a9883c0

Browse files
SkeekS CMS
1 parent 973ff93 commit a9883c0

File tree

3 files changed

+18
-13
lines changed

3 files changed

+18
-13
lines changed

common/config/db.php

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,21 @@
11
<?php
22
/**
3-
* @author Semenov Alexander <support@skeeks.com>
3+
* @author Semenov Alexander <semenov@skeeks.com>
44
* @link http://skeeks.com/
5-
* @copyright 2010 SkeekS (СкикС)
6-
* @date 17.09.2015
5+
* @copyright 2010 SkeekS (�����)
6+
* @date 18.09.2015
77
*/
8-
return [
9-
'class' => 'yii\db\Connection',
10-
'dsn' => 'mysql:host=localhost;dbname=skeeks',
11-
'username' => 'skeeks',
12-
'password' => 'N7j27QFsbMn4EV77',
13-
'charset' => 'utf8',
14-
'enableSchemaCache' => true,
15-
'schemaCacheDuration' => 3600,
8+
return
9+
[
10+
'components' => [
11+
'db' => [
12+
'class' => 'yii\db\Connection',
13+
'dsn' => 'mysql:host=localhost;dbname=skeeks',
14+
'username' => 'skeeks',
15+
'password' => 'N7j27QFsbMn4EV77',
16+
'charset' => 'utf8',
17+
'enableSchemaCache' => true,
18+
'schemaCacheDuration' => 3600,
19+
]
20+
]
1621
];

common/config/main.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
$config = [
1212
'components' =>
1313
[
14-
'db' => require __DIR__ . '/db.php',
15-
1614
'urlManager' => [
1715
'rules' => [
1816
[

composer.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@
6767
"config-plugin": {
6868
"web": [
6969
"common/config/main.php",
70+
"common/config/db.php",
7071
"frontend/config/main.php"
7172
],
7273
"web-dev": [
@@ -79,6 +80,7 @@
7980
],
8081
"console": [
8182
"common/config/main.php",
83+
"common/config/db.php",
8284
"console/config/main.php"
8385
],
8486
"console-dev": [

0 commit comments

Comments
 (0)