public function actionView($id) { $model = History::findOne($id); if ($model === null) { $this->flash('error', Yii::t('easyii', 'Not found')); return $this->redirect(['/admin/subscribe/history']); } return $this->render('view', ['model' => $model]); }