Pagination URI segments – Codeigniter

After a vast work experience in CakePHP when I had to impliment pagination related task in Codeigniter I ignored one thing and basically it was very important for implementing proper pagination. It is uri_segment configuration of pagination.

uri_segment is actualy segments of urls

So for example URL for pagination will be like

then set uri_segment to 6

Here 6 is the count of segments from ahead.
similarly, if url is


Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">