public static function index() { $posts = Posts::all()->fetchAll(\PDO::FETCH_CLASS); $categories = Categories::all()->fetchAll(\PDO::FETCH_CLASS); $comments = Comments::all()->fetchAll(\PDO::FETCH_CLASS); View::render('admin/home', ['posts' => $posts, 'categories' => $categories, 'comments' => $comments]); }