bedezign\yii2\audit\controllers\MailController::actionViewHtml PHP Method

actionViewHtml() public method

Displays a single AuditMail model's HTML.
public actionViewHtml ( integer $id ) : mixed
$id integer
return mixed
    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]);
    }