File tree Expand file tree Collapse file tree 3 files changed +18
-13
lines changed Expand file tree Collapse file tree 3 files changed +18
-13
lines changed Original file line number Diff line number Diff line change 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];
Original file line number Diff line number Diff line change 1111$ config = [
1212 'components ' =>
1313 [
14- 'db ' => require __DIR__ . '/db.php ' ,
15-
1614 'urlManager ' => [
1715 'rules ' => [
1816 [
Original file line number Diff line number Diff line change 6767 "config-plugin" : {
6868 "web" : [
6969 " common/config/main.php" ,
70+ " common/config/db.php" ,
7071 " frontend/config/main.php"
7172 ],
7273 "web-dev" : [
7980 ],
8081 "console" : [
8182 " common/config/main.php" ,
83+ " common/config/db.php" ,
8284 " console/config/main.php"
8385 ],
8486 "console-dev" : [
You can’t perform that action at this time.
0 commit comments