Welcome Guest, Not a member yet? Register   Sign In
uri routing question
#4

[eluser]megabyte[/eluser]
I figured it out. but it doesn't seem to work when you want to call a function.

www.mydomain.com/bob works

but if I have a function called age() in the controller and I go to

www.mydomain.com/bob/age

All I get is it calling the index()

and i set up a route to in an attempt to fix it with

$route[':any/age'] = "test/age";


but that did not help either.

Any ideas?


K I wish we could delete our posts when we solve them ourselves, lol.

I figured out its all about the order in which you list the routes, which is what you were talking about earlier.


Messages In This Thread
uri routing question - by El Forum - 08-12-2007, 11:36 AM
uri routing question - by El Forum - 08-12-2007, 12:45 PM
uri routing question - by El Forum - 08-12-2007, 03:42 PM
uri routing question - by El Forum - 08-12-2007, 03:53 PM
uri routing question - by El Forum - 10-23-2007, 01:38 PM



Theme © iAndrew 2016 - Forum software by © MyBB