Welcome Guest, Not a member yet? Register   Sign In
wildcard routes
#4

[eluser]tomcode[/eluser]
Put these two lines in Your config/routes.php :

Code:
$route['health-and-safety'] = 'hs';
$route['health-and-safety/(:any)'] = 'hs/$1';

Now all requests for health-and-safety end in the controller hs.


Messages In This Thread
wildcard routes - by El Forum - 02-06-2010, 06:13 AM
wildcard routes - by El Forum - 02-06-2010, 07:58 AM
wildcard routes - by El Forum - 02-06-2010, 08:01 AM
wildcard routes - by El Forum - 02-07-2010, 02:32 AM



Theme © iAndrew 2016 - Forum software by © MyBB