mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-21 17:20:57 +08:00
Fixes #1846
This commit is contained in:
@@ -17,9 +17,4 @@ return [
|
|||||||
'class' => 'yii\swiftmailer\Mailer',
|
'class' => 'yii\swiftmailer\Mailer',
|
||||||
'viewPath' => '@common/mails',
|
'viewPath' => '@common/mails',
|
||||||
],
|
],
|
||||||
|
|
||||||
'components.db' => [
|
|
||||||
'class' => 'yii\db\Connection',
|
|
||||||
'charset' => 'utf8',
|
|
||||||
],
|
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -1,8 +1,10 @@
|
|||||||
<?php
|
<?php
|
||||||
return [
|
return [
|
||||||
'components.db' => [
|
'components.db' => [
|
||||||
|
'class' => 'yii\db\Connection',
|
||||||
'dsn' => 'mysql:host=localhost;dbname=yii2advanced',
|
'dsn' => 'mysql:host=localhost;dbname=yii2advanced',
|
||||||
'username' => 'root',
|
'username' => 'root',
|
||||||
'password' => '',
|
'password' => '',
|
||||||
|
'charset' => 'utf8',
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user