public function controller_get_total_posts() { $postmodel = new PostModel(); $total = $postmodel->get_total_posts(); return $total; }