thurting wrote:
>
> However, when the (int) value of $page is greater than the range of the
> result set, an empty rowset object is returned.
I just created a Pager class. What I personally find best practice is this:
- It should not fail on bad input, because that will annoy your users.
- If the input is really bad, show first page.
- If only the length is too large, show them what you've got from offset to
total
- An invalid $page defaults to zero (or 1, depending on what you are doing)
- An invalid $length defaults to your default length, in my case 25.
Good luck.
--
View this message in context:
http://www.nabble.com/Question-about-pagination-tp16392201p16395681.html
Sent from the Zend Framework mailing list archive at Nabble.com.