[eluser]tonybianco[/eluser]
Hi there. I'm new to CI but not so much to MVC. I have done some stuff with Rails and a few other frameworks. However, I'm running into a wall trying to figure out the routing of urls.
I'm wanting to set up a default route so that when someone types up mydomain.com/45678 <--(as in an affiliate id) then it will route to the proper controller and action with the numbers as the the id of the affiliate.
I spent time digging around the documentation but I couldn't find a way to do that for me. I was thinking that if I did this that it would work:
Code:
$rout['(:num)'] = "affiliates/affiliate_lookup/$1";
But it doesn't work nor does it even feel right when I'm coding that. Any suggestions would be very helpful?