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