Pagination not working - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: Pagination not working (/showthread.php?tid=72711) |
Pagination not working - firas - 01-30-2019 I am making pagination for my page because of too many data from the database, I try an online tutorial, I can show the data from the database, but when I click next or second page on the pagination, it didn't work. this is my controller : PHP Code: <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); My model : PHP Code: <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); and my view page : PHP Code: <head> RE: Pagination not working - InsiteFX - 01-30-2019 Here is an example with download script. Pagination In CodeIgniter With Example RE: Pagination not working - firas - 01-30-2019 (01-30-2019, 09:40 AM)InsiteFX Wrote: Here is an example with download script. I already try this, but I always stuck with base URL, every time I did it, it shows error 404 my view page is in views/pages/exhibitions.php RE: Pagination not working - InsiteFX - 01-31-2019 Your base url should point to controller/method PHP Code: $config['base_url'] = base_url('exhibitions/index'); RE: Pagination not working - firas - 01-31-2019 (01-31-2019, 04:41 AM)InsiteFX Wrote: Your base url should point to controller/method Already change it but when I click on the second page, it shows "Object Not Found" and "Error 404". RE: Pagination not working - firas - 02-06-2019 Can anyone help me? |