Skip to content

Instantly share code, notes, and snippets.

View webboy-fr's full-sized avatar

Julien Buabent webboy-fr

View GitHub Profile
@webboy-fr
webboy-fr / MY_Pagination.php
Last active September 30, 2019 14:07
CodeIgniter 3.1 customized pagination lib : Display pagination by step of ten or hundred. Customisable. Optimized for big pagination and to help SEO robots to crawl your site faster. Code modification line 250 to 275. You can see a picture in comments to understand the final rendering.
<?php
class MY_Pagination extends CI_Pagination
{
//Step by 10 plugin
protected $crawl_by_ten = 0;
//Step by 100 plugin
protected $crawl_by_hundred = 0;