} public function actionView($id) { $article = Article::findOne($id); $data = Article::getAll(100); $popular = Article::getPopular(); $recent = Article::getRecent(); $categories = Category::getAll(); $comments = $article->getArticleComments(); $commentForm = new CommentForm(); $article->viewedCounter(); return $this->render('single',[ 'article'=>$article, 'popular'=>$popular, 'recent'=>$recent, 'categories'=>$categories,
$_GET = [ 'id' => '70', ];