Using 'cur_page' in Pagination class |
Hello,
I was wandering, if this usage scenario of Pagination class is correct: PHP Code: public function display_users() I need to know current page number to calculate offset for SELECT query. I can take the page number from url, but then i have to check if it's integer and within range of existing pages. Instead, I use pagination->cur_page (after calling create_links() ), because all of that validation and cheking is done in create_links(). So, my question is, can I use pagination->cur_page in this way? Thanks. |
Messages In This Thread |
Using 'cur_page' in Pagination class - by eretnekseg - 04-06-2017, 12:37 PM
|