Pagination best practices - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=11) +--- Thread: Pagination best practices (/showthread.php?tid=63895) |
Pagination best practices - gastongr - 12-20-2015 Hello everyone, i am wondering if someone could share a few best practises for doing pagination with the CI library. Currently i do it like PHP Code: public function method() { Which really sucks. Any advise or examples are very welcome! Thanks guys! RE: Pagination best practices - arma7x - 12-20-2015 My experience using free webhosting for demo and testing purpose. The server does not support mod_rewrite and cause all link with base_url() became error 404. Since the day, I use site_url() for pagination and only use base_url() to locate JavaScript, css and other assets in htdocs. |