Pagination , Routing 404 - Newbie |
Learning CI3 ..... building a simple cms . Added ' pagination' to the libraries array and tried the code below
In the posts controller index function i am showing all my posts ( Total of 7 posts of which i try to show 5) . When i try to use pagination it is showing 404 error ie; http://localhost/CI3/posts - shows all 7 posts with pagination links in bottom , clicking '2' takes to http://localhost/CI3/posts/5 which is giving a 404 page not found . route.php ------------ PHP Code: $route['posts/create'] = 'posts/create'; Posts.php ------------ PHP Code: Class Posts extends CI_Controller { Can somebody help with what went wrong .. |
Messages In This Thread |
Pagination , Routing 404 - Newbie - by anoopd - 04-28-2017, 10:57 PM
RE: Pagination , Routing 404 - Newbie - by arma7x - 04-29-2017, 02:17 AM
RE: Pagination , Routing 404 - Newbie - by anoopd - 04-29-2017, 08:02 PM
RE: Pagination , Routing 404 - Newbie - by InsiteFX - 04-29-2017, 04:25 AM
RE: Pagination , Routing 404 - Newbie - by anoopd - 04-29-2017, 08:06 PM
RE: Pagination , Routing 404 - Newbie - by InsiteFX - 04-30-2017, 03:58 AM
RE: Pagination , Routing 404 - Newbie - by anoopd - 04-30-2017, 08:30 PM
|