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