protected function randomAction() { $single_article = ArticlesModel::random(); $view = new View(); $view->item = $single_article; $view->display('SingleArticle.php'); }
protected function RandomAction() { $single_article = ArticlesModel::random(); include __DIR__ . '/../views/SingleArticle.php'; }