Welcome Guest, Not a member yet? Register   Sign In
Custom URL routing and interpretation?
#2

[eluser]TheFuzzy0ne[/eluser]
Assuming you're only going to have a single controller, just rerouting all calls to that controller should work.
Code:
$route[':any'] = 'controller/method''

I'd imagine that should do it, but I haven't tested it.

You should then be able to use $this->uri->segment(n) to get your segments. Segment number 1 should be the country name. Again, I can't confirm this, as I don't use routes, but if I understand them correctly, that should work.


Messages In This Thread
Custom URL routing and interpretation? - by El Forum - 02-22-2009, 02:36 PM
Custom URL routing and interpretation? - by El Forum - 02-22-2009, 02:59 PM



Theme © iAndrew 2016 - Forum software by © MyBB