Welcome Guest, Not a member yet? Register   Sign In
Pagination - Am I Missing something about per_page?
#3

[eluser]Aken[/eluser]
The Pagination class's function is to create the links for the different pages. It has no other function than that. It is up to you to discern what information need to be displayed based on the URL.

The class should be used in your controller, and the create_links() function should be passed through to your view. Your controller should then parse the URL to figure out what chunk of information should be retrieved, and then passed to your model, which is where you'd include the LIMIT query.


Messages In This Thread
Pagination - Am I Missing something about per_page? - by El Forum - 01-01-2010, 03:31 PM
Pagination - Am I Missing something about per_page? - by El Forum - 01-01-2010, 04:29 PM
Pagination - Am I Missing something about per_page? - by El Forum - 01-01-2010, 05:27 PM
Pagination - Am I Missing something about per_page? - by El Forum - 01-01-2010, 11:50 PM
Pagination - Am I Missing something about per_page? - by El Forum - 01-02-2010, 05:18 AM



Theme © iAndrew 2016 - Forum software by © MyBB