[ 'db' => [ 'class' => 'yii\db\Connection', //'dsn' => 'mysql:host=localhost;dbname=morework', 'dsn' => '', 'username' => '', 'password' => '', 'charset' => 'utf8', ], 'mailer' => [ 'class' => 'yii\swiftmailer\Mailer', 'viewPath' => '@common/mail', ], ], ];