Route file question - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Route file question (/showthread.php?tid=41369) |
Route file question - El Forum - 05-05-2011 [eluser]R_Nelson[/eluser] in my Site Controller i have a function called view it takes the 3rd segment witch is the username what i want to do is instead of it looking for site/view/username i want to just have username. I am wondering is there a way to put in a wildcard or the varaible into the route file so i would get something like http://www.mysite.com/username ? Route file question - El Forum - 05-05-2011 [eluser]toopay[/eluser] Thats would breaking the CI route concept at all! Configure a hook to do that, instead play with your route. This thread should help you out... Route file question - El Forum - 05-06-2011 [eluser]R_Nelson[/eluser] i kinda see what it is doing guess im goma have to read up on hooks and learn how to use them! thanks for the help! |