diff --git a/framework/yii/mail/BaseMailer.php b/framework/yii/mail/BaseMailer.php index 4e1982c..9636e63 100644 --- a/framework/yii/mail/BaseMailer.php +++ b/framework/yii/mail/BaseMailer.php @@ -100,7 +100,7 @@ abstract class BaseMailer extends Component implements MailerInterface, ViewCont protected function createView(array $config) { if (!array_key_exists('class', $config)) { - $config['class'] = '\yii\base\View'; + $config['class'] = 'yii\web\View'; } return Yii::createObject($config); }