public function controller_get_posts($offset, $count) { $postmodel = new PostModel(); $data = $postmodel->get_posts($offset, $count); return $data; }