Pagination on homepage |
Hi
I'm trying to have pagination on index of my default controller. e.g. http://domain.com/ i'm getting 404 error when going to second page on pagination e.g http://domain.com/2 i understand it is looking for a controller as 2nd uri segment, hence 404 error. Any idea how to solve the problem? Thanks in advance.
Something like this in a Welcome controller:
Code: public function index(){ Then in routes something like: Code: $route['(:num)'] = 'welcome/page/$1';
(11-25-2017, 10:13 PM)skunkbad Wrote: Something like this in a Welcome controller: Thank you. This helped 100%. |
Welcome Guest, Not a member yet? Register Sign In |