Paginator |
[eluser]JonoB[/eluser]
The core pagination class is super easy to use, but didnt provide the flexibility and features that I was looking for. I wanted to be able to sort column headings, choose the page size, and more. This class is based heavily on the CI 2.0 core Pagination Class. However, if you pass in the right parameters, it will hopefully work some magic for you and create a table with sortable headers, as well as selectable page sizes Although the core Pagination class works off the offset param, this class uses the the page number and page size, as well as the sort order and sort direction. For this to happen, the uri has to be constructed in a very specific order of: /page_no/page_size/sort_by/sort_order. So, for example, products/index/2/25/code/desc means that I want to show the 2nd page, 25 records, sorted by code, sorted in descending order Note that this class does not yet work with query strings Please excuse me if this doesnt meet all the CI coding requirements. I'm still getting used to the framework and MVC in general. Any comments, suggestions, bug fixes are welcome. Grab the latest version from https://github.com/JonoB/CI-Paginator |
Messages In This Thread |
Paginator - by El Forum - 02-23-2011, 10:51 AM
Paginator - by El Forum - 08-15-2011, 05:03 AM
Paginator - by El Forum - 08-15-2011, 05:19 AM
Paginator - by El Forum - 08-15-2011, 06:15 AM
Paginator - by El Forum - 08-17-2011, 04:38 AM
Paginator - by El Forum - 08-17-2011, 06:09 AM
Paginator - by El Forum - 08-17-2011, 06:56 AM
Paginator - by El Forum - 10-02-2013, 11:44 PM
|