Welcome Guest, Not a member yet? Register   Sign In
CI Pagination Helper
#5

[eluser]ray73864[/eluser]
ok, so i worked out what the problem was, the problem was that the 'num_rows' was being set to $query->num_rows(), but since the query was being limited the pagination class was only ever going to see 1 page of results and never anymore.

i created a new function in my model to count all the results that match the query (minus the limiter) and now the page links all come up properly.


Messages In This Thread
CI Pagination Helper - by El Forum - 09-28-2008, 12:33 AM
CI Pagination Helper - by El Forum - 09-28-2008, 12:51 AM
CI Pagination Helper - by El Forum - 09-28-2008, 01:08 AM
CI Pagination Helper - by El Forum - 09-28-2008, 01:11 AM
CI Pagination Helper - by El Forum - 09-28-2008, 02:47 AM



Theme © iAndrew 2016 - Forum software by © MyBB