(new ForumData\Forum()), 'stats' => [ 'userCount' => Database::count('users', ['password_algo' => ['nologin', '!='], 'rank_main' => ['1', '!=']])[0], 'newestUser' => User::construct(Users::getNewestUserId()), 'lastRegData' => date_diff( date_create(date('Y-m-d', User::construct(Users::getNewestUserId())->registered)), date_create(date('Y-m-d')) )->format('%a'), 'topicCount' => Database::count('topics')[0], 'postCount' => Database::count('posts')[0], 'onlineUsers' => Users::checkAllOnline(), ], ] ); // Set parse variables $template->setVariables($renderData); // Return the compiled page return $template->render('forum/index'); } // View a forum public static function forum($id = null) { } }