Skip to content


Folders and files

Last commit message
Last commit date

Latest commit



13 Commits

Repository files navigation

CodeIgniter Pagination

Simple CodeIgniter library that makes working with pagination easier


Here is a simple, but powerful, Pagination Library for CodeIgniter. I have been using this in our projects for years, so it is very well tested.

If you have any requests or changes, please feel free to leave me a request in the "issues" tab for me.



  1. Drop everything into your application folder (assets folder is just for demo purposes)
  2. Use: $config['uri_protocol'] = 'PATH_INFO';
  3. Go to the test controller and start working with it. You will have to make your own SQL queries/models.


  1. Handles a directory structure or by using the $_GET array. (Ex: or
  2. Directory structure can add a trailing slash or not, which is good for SEO (Ex: or
  3. Page 1 links will not show a pagination number. Search engines will look at and as duplicate content, so the pagination is dropped.
  4. Handles regular links or AJAX update links
  5. Automatically builds sorting links
  6. Handles different HTML tags (li, div, etc) for pagination links and additional HTML/CSS options.
  7. Handles additional search/sorting parameters and will add to the $_GET array
  8. Page stats output (Ex: Displaying 1 to 25 (of 115 users))


  • v1.2 - Fixed next and previous link css classes, added view all css class, removed unneeded variables
  • v1.1 - Updated copyright, license information, and formatting. Must update views to use: page_stats()
  • v1.03 - Added number formatting to pageStats()
  • v1.02 - Added rel="nofollow" option for links other than page 1