CodeIgniter Forums
Dynamic function how - 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: Dynamic function how (/showthread.php?tid=9321)



Dynamic function how - El Forum - 06-21-2008

[eluser]stalwart[/eluser]
how to make second segment dynamic
like this
www.example.com/user/$username


Dynamic function how - El Forum - 06-21-2008

[eluser]EEssam[/eluser]
Check this:

http://ellislab.com/codeigniter/user-guide/general/routing.html


Dynamic function how - El Forum - 06-22-2008

[eluser]Seppo[/eluser]
As EEssam suggested, you can use routing so all your calls to user/something get remaped to user/lookfornickname/something, or you can use a _remap method (described here