public function actionView($id) { $articleModel = new ArticleModel(); $article = $articleModel->get($id); if ($article === false) { throw new Http404(); } $templateEngine = new TemplateEngine(); return $templateEngine->render('articles/view.html', $article); }