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
http://example.dev/admin/membership/referels/1/7/10

then set uri_segment to 6

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

http://example.dev/admin/membership/ref/1/30

then

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="">