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