12-13-2007, 05:02 AM
|
#8 (permalink)
|
|
The Contributor
Join Date: Dec 2007
Location: Belgium
Posts: 60
Thanks: 6
|
Quote:
Originally Posted by Andrew
How would you go about just making it just 'paginate'?
|
I agree with Salathe. Two important points made: make it generic and don't start outputting html in the class.
It happens that I'm the guy who developed the Pagination library for Kohana, which lives up to the above two conditions.
You set only the necessary items: current page, total items, items per page and possibly a base url. The Pagination library takes it from there. The nice thing is that with just one word you can switch from style, e.g. classic or extended or whatever template you provide in the views/pagination folder.
|
|
|
|