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

[eluser]richzilla[/eluser]
Hi all, I've looked through the user guide, but it doesn't seem to make what i want to do very clear, or I'm missing something...

Basically i want to route a url with any function name to the same controller, but with the function name appended to the end. so for example in my site:

id want
Code:
/health-and-safety/courses
to route to
Code:
/hs/courses
and also
Code:
health-and-safety/home
to route to
Code:
hs/home

I can do it on the routes side of the statement with
Code:
/health-and-safety/:any
as the value for the route but how to i get the
Code:
:any
value to be copied onto the hs/ side?

Any help would be appreciated.
Thanks


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