my class (posts.php): class Posts { private function getPosts() { $get_post = (new MYSQL) -> getAllPosts(); // here get all posts from my db $GLOBALS[“all_posts”] = $get_posts; function …
my class (posts.php): class Posts { private function getPosts() { $get_post = (new MYSQL) -> getAllPosts(); // here get all posts from my db $GLOBALS[“all_posts”] = $get_posts; function …