Yii2 邮件指定自定义layout方法
2019-08-16 本文已影响0人
jacky_8897
Yii:$app->mailer->layout='layouts/custom_layout';
$var = ['title'=>' this is title', 'content'=> 'main content'];
Yii::$app->mailer->composer('viewTemplate', $var);
Yii:$app->mailer->layout='layouts/custom_layout';
$var = ['title'=>' this is title', 'content'=> 'main content'];
Yii::$app->mailer->composer('viewTemplate', $var);