Welcome Guest, Not a member yet? Register   Sign In
Using Pagination Library
#4

You have only two ways to solve your problem.
1. Use pagination of the model.
2. Write your own implementation of pagination.

I recommend the second way. Only then will you understand how pagination works.
And then, looking at the original code, you will feel ashamed.

A comment about your code.
$db->query() returns the query result.
Services::pager() returns an instance of the pagination class.
But they are not related to each other.
What kind of magic do you expect?
Reply


Messages In This Thread
Using Pagination Library - by cifan - 01-03-2022, 11:07 AM
RE: Using Pagination Library - by cifan - 01-04-2022, 12:35 PM
RE: Using Pagination Library - by iRedds - 01-04-2022, 05:29 PM
RE: Using Pagination Library - by BilltheCat - 01-05-2022, 12:41 PM



Theme © iAndrew 2016 - Forum software by © MyBB