[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