Can you check my pagination?[SOLVED] |
02-10-2017, 10:46 PM
(This post was last modified: 02-10-2017, 11:13 PM by kirasiris. Edit Reason: forgot to mention ) (02-10-2017, 10:01 PM)pdthinh Wrote:(02-10-2017, 12:50 PM)kirasiris Wrote: Ok, I did that as well, but it now shows just one entry, and apparently the same id. Basically it just showing one item rather than one different per page Not to offend, but that was the first thing that I tried. It do not works(it changes the URL) from: http://localhost/demo6/blog/?page=1 to: http://localhost/demo6/blog/1 (and so on) It gives me a 404 error. Should I do something to the "routes" file? Thanks for trying to help
I do Front-End development most of the time
PHP Code: // $config['query_string_segment'] = 'paginas'; If your controller is news and method is blog(), so the the route should like: PHP Code: // $route['blog'] = 'news/blog/index'; // comment this line to test (02-10-2017, 11:14 PM)pdthinh Wrote: Hey, it's working now : ![]() I could have done it by myself, but I never thougt that it was going to be just about changing the route file.
I do Front-End development most of the time
|
Welcome Guest, Not a member yet? Register Sign In |