Re: [ikanizaj] list items per page and pagination
Hi Igor,
So to clarify, one your first page, you want to display 20 items, and then you want to display 10 items on each page after. Is that right?
One options would be, instead of using perPage, use the limit and offset options.
For example, if $_REQUEST['page'] = 1 or has no value, you would use:
offset => 0,
limit => 20
If the page is greater than 1, you would use
offset => $page * 10,
limit => 10,
Hope this helps get you started.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com
Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/