Skip to content

Commit

Permalink
SkeekS CMS
Browse files Browse the repository at this point in the history
  • Loading branch information
skeeks-semenov committed Nov 12, 2017
1 parent 973ff93 commit a9883c0
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 13 deletions.
27 changes: 16 additions & 11 deletions common/config/db.php
Original file line number Diff line number Diff line change
@@ -1,16 +1,21 @@
<?php
/**
* @author Semenov Alexander <support@skeeks.com>
* @author Semenov Alexander <semenov@skeeks.com>
* @link http://skeeks.com/
* @copyright 2010 SkeekS (СкикС)
* @date 17.09.2015
* @copyright 2010 SkeekS (�����)
* @date 18.09.2015
*/
return [
'class' => 'yii\db\Connection',
'dsn' => 'mysql:host=localhost;dbname=skeeks',
'username' => 'skeeks',
'password' => 'N7j27QFsbMn4EV77',
'charset' => 'utf8',
'enableSchemaCache' => true,
'schemaCacheDuration' => 3600,
return
[
'components' => [
'db' => [
'class' => 'yii\db\Connection',
'dsn' => 'mysql:host=localhost;dbname=skeeks',
'username' => 'skeeks',
'password' => 'N7j27QFsbMn4EV77',
'charset' => 'utf8',
'enableSchemaCache' => true,
'schemaCacheDuration' => 3600,
]
]
];
2 changes: 0 additions & 2 deletions common/config/main.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
$config = [
'components' =>
[
'db' => require __DIR__ . '/db.php',

'urlManager' => [
'rules' => [
[
Expand Down
2 changes: 2 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
"config-plugin": {
"web": [
"common/config/main.php",
"common/config/db.php",
"frontend/config/main.php"
],
"web-dev": [
Expand All @@ -79,6 +80,7 @@
],
"console": [
"common/config/main.php",
"common/config/db.php",
"console/config/main.php"
],
"console-dev": [
Expand Down

0 comments on commit a9883c0

Please sign in to comment.