Welcome Guest, Not a member yet? Register   Sign In
Help on Pagination Library class
#1

[eluser]adekenny[/eluser]
Hi,

Can someone please tell how to use the Pagination Library class to handle information coming from my database which is then passed to a function in the controller. I've been trying to use it to organize some information coming from a model-function which is then passed to a controller function, but i can't figure out how to apply the pagination in the controller function.

The userguide did not explain how to use it with database information, it only tells me how to configure it in the controller without showing any example.

How do i apply it in the controller function that's calling a view to output the result to the user.

Many Thanks
adekenny - nigeria
#2

[eluser]GlennJ[/eluser]
If you pass the page number and page size to the database function you can then use MySQL commands to limit the response which will facilitate the paging.

The mysql function you'll need is the "LIMIT" command funnily enough ;-)




Theme © iAndrew 2016 - Forum software by © MyBB