public function actionViewHtml($id) { $model = AuditMail::findOne($id); if (!$model) { throw new NotFoundHttpException('The requested mail does not exist.'); } $this->layout = false; return $this->render('view-html', ['model' => $model]); }