Welcome Guest, Not a member yet? Register   Sign In
How to make paging from the basics
#4

first imlement get_posts() and get_post_count() methods in your post_model,

get_posts($filter, $offset, $limit) will filter posts according to data in $filter, and get posts starting from $offset and ending with  $limit;
get_post_count($filter) will return total post count
Reply


Messages In This Thread
RE: How to make paging from the basics - by neuron - 08-10-2017, 03:40 AM



Theme © iAndrew 2016 - Forum software by © MyBB