Welcome Guest, Not a member yet? Register   Sign In
Pagination , Routing 404 - Newbie
#2

(This post was last modified: 04-29-2017, 02:51 AM by arma7x.)

$route ['posts/(:any)' ] = 'posts/view/$1' ;
This route find single post. In your pagination, '/post/{page}' will find post using page param not navigate to other pages and I'm sure in your Post controller searching for invalid post will show 404 page. Btw at the bottom of route, $route ['(:any)' ] = 'pages/view/$1' ; also for viewing single post.
KeepĀ calm.
Reply


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 anoopd - 04-29-2017, 08:06 PM
RE: Pagination , Routing 404 - Newbie - by anoopd - 04-30-2017, 08:30 PM



Theme © iAndrew 2016 - Forum software by © MyBB