Pagination modification - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: Model-View-Controller (https://forum.codeigniter.com/forumdisplay.php?fid=10) +--- Thread: Pagination modification (/showthread.php?tid=67603) |
Pagination modification - marilena6 - 03-14-2017 This is my views: PHP Code: <table class="table table-striped table-bordered bootstrap-datatable datatable"> PHP Code: function getProducts() PHP Code: class Products extends MX_Controller { RE: Pagination modification - mirivlad - 05-12-2017 View html source code in browser which generated by CI. pagination work, but not show because you insert it not in tr>td. Insert PHP Code: <?php echo $this->pagination->create_links();?> after </table> tag, or change to Code: <tr><td colspan="11"> <?php echo $this->pagination->create_links();?></td></tr> RE: Pagination modification - mirivlad - 05-12-2017 You missing $config['uri_segment']. Pagination library dont know what page you open and how to change url for other ling in paginator. set $config['uri_segment'] = $offset; |