Hi. I'm developing a game fansite to learn CodeIgniter that includes a database of character information. I want to use this URL format:
http://www.mydomain.com/characters/joe
http://www.mydomain.com/characters/sam
So I have a controller called characters. If I understand the CI documentation, I can only parse "joe" and "sam" in the URL if I call a function. For example, say I define function "detail" and pass it the 1st URL segment. It would look like this:
http://www.mydomain.com/characters/detail/joe
http://www.mydomain.com/characters/detail/sam
I don't want that unnecessary depth in the URL hierarchy. Surely there must be some way to bring up detailed pages for "joe" and "sam" through the "detail" function in the "characters" controller without requiring "detail" to be in the URL, or to skip "detail" function alltogether. How do I do that?