Pagination not working |
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>
Here is an example with download script.
Pagination In CodeIgniter With Example What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
(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
Your base url should point to controller/method
PHP Code: $config['base_url'] = base_url('exhibitions/index'); What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
|
Welcome Guest, Not a member yet? Register Sign In |