Welcome Guest, Not a member yet? Register   Sign In
problem in routes.php
#1

Code:
$route['tv']               = 'Controller_tv';
$route['tv/(:any)/(:num)'] = 'Controller_tv/$1/$2';    // tv/[category = popular,toprated, etc]/[pagination]
$route['tv/(:num)']        = 'Controller_tv/view/$1';  // tv/[id_tv]


if I access http://localhost/tv and http://localhost/tv/[category]/[pagination] its return true.
but if I access http://localhost/tv/[id_tv] its return 404 Page Not Found.

I know $route['tv/(:any)/(:num)'] and $route['tv/(:num)'] is collision. how i can fix it but not changings ( tv ).

thanks before
Reply


Messages In This Thread
problem in routes.php - by DELE - 10-12-2018, 01:17 AM
RE: problem in routes.php - by Sky - 10-12-2018, 02:14 AM
RE: problem in routes.php - by InsiteFX - 10-12-2018, 02:56 AM
RE: problem in routes.php - by dave friend - 10-12-2018, 08:54 PM



Theme © iAndrew 2016 - Forum software by © MyBB