View Single Post
Old 12-13-2007, 05:02 AM   #8 (permalink)
Geert
The Contributor
RegEx Guru 
 
Join Date: Dec 2007
Location: Belgium
Posts: 60
Thanks: 6
Geert is on a distinguished road
Default

Quote:
Originally Posted by Andrew View Post
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.
__________________
Kohana - PHP5 framework
Geert is offline  
Reply With Quote