Welcome Guest, Not a member yet? Register   Sign In
Routes order
#2

The router checks for a match before it attempts to process any wildcard routes. So, with the routes you've defined, more than likely you'll see a different result for http://localhost:8888/clinicases/index.php/news/index than for http://localhost:8888/clinicases/index.php/news, since http://localhost:8888/clinicases/index.php/news will match $route['news'], no matter where it is in the config/routes.php file, while http://localhost:8888/clinicases/index.php/news/index will match either $route['(:any)'] or $route['news/(:any)'], depending on the order of the items in the config/routes.php file.
Reply


Messages In This Thread
Routes order - by Gareehc - 09-21-2015, 03:44 AM
RE: Routes order - by mwhitney - 09-21-2015, 08:04 AM



Theme © iAndrew 2016 - Forum software by © MyBB