Welcome Guest, Not a member yet? Register   Sign In
help with routes[]
#1

[eluser]chefnelone[/eluser]
Hello
I'm trying to make a route rule. Something like:

Code:
$route[':any/services'] = 'index/services';

which works fine with:

Code:
http://192.1/ci/something-1/services


but the problem is that the rule applies also when there are 2 segments before /services. Then it applies whith:

Code:
http://192.1/ci/something-1/something-2/services

I need the rule to apply only when there is ONLY 1 segment before /services but not when there are 2 segments before /services.
The segment before /services must be :any though

thanks


Messages In This Thread
help with routes[] - by El Forum - 06-11-2010, 06:10 AM
help with routes[] - by El Forum - 06-11-2010, 07:19 AM
help with routes[] - by El Forum - 06-11-2010, 07:45 AM



Theme © iAndrew 2016 - Forum software by © MyBB