/** * Shows page by it's ID * * @param $id * * @return string * @throws \yii\web\NotFoundHttpException */ public function actionShow($id) { $page = Page::loadModel($id, false, false); if ($page === null) { throw new NotFoundHttpException(); } return $this->render('show', ['model' => $page]); }