Welcome Guest, Not a member yet? Register   Sign In
uri routing to index()
#1

[eluser]-sek[/eluser]
The CI documents give the routing as

class/function/param/param/ etc.

Working on a new class, I noticed that I was getting a 404 Error with

/friends/pending/

friends is the controller class and pending is the parameter.

After puzzling with this a bit, I discovered CI apparently does not honor the routing convention for the index() function.

I didn't want a url like

friends/friends/pending
or
friends/browse/pending

Just

friends/

for the default listing and

friends/pending

for the pending listing.

I know that I can put the code into another function, browse() or friends() and specify a routing that does not mention the function name, but it seems strange that I can't pass a parameter to index().

Any ideas?

Steve


Messages In This Thread
uri routing to index() - by El Forum - 05-07-2008, 07:42 PM
uri routing to index() - by El Forum - 05-08-2008, 02:07 AM
uri routing to index() - by El Forum - 05-08-2008, 03:02 AM



Theme © iAndrew 2016 - Forum software by © MyBB