diff --git a/apps/advanced/common/config/params.php b/apps/advanced/common/config/params.php index 7b9a51a..a3d3b3a 100644 --- a/apps/advanced/common/config/params.php +++ b/apps/advanced/common/config/params.php @@ -17,9 +17,4 @@ return [ 'class' => 'yii\swiftmailer\Mailer', 'viewPath' => '@common/mails', ], - - 'components.db' => [ - 'class' => 'yii\db\Connection', - 'charset' => 'utf8', - ], ]; diff --git a/apps/advanced/environments/dev/common/config/params-local.php b/apps/advanced/environments/dev/common/config/params-local.php index 47edec1..b6a9496 100644 --- a/apps/advanced/environments/dev/common/config/params-local.php +++ b/apps/advanced/environments/dev/common/config/params-local.php @@ -1,8 +1,10 @@ [ + 'class' => 'yii\db\Connection', 'dsn' => 'mysql:host=localhost;dbname=yii2advanced', 'username' => 'root', 'password' => '', + 'charset' => 'utf8', ], ];