public function actionDetail($id) { $model = Post::getPostById($id); return $this->render('detail', ['model' => $model]); }