CodeIgniter Forums
username for controller - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: username for controller (/thread-33467.html)



username for controller - El Forum - 08-26-2010

[eluser]new_igniter[/eluser]
Hello,
I would like to do something like

mydomain.com/username

I have not had success trying various things. Do you know if this is possible?


username for controller - El Forum - 08-26-2010

[eluser]sstalder[/eluser]
If that controller exists I don't see why it wouldn't work? Can you provide some detail around your coding?


username for controller - El Forum - 08-26-2010

[eluser]CI_avatar[/eluser]
sstalder is right. create controller/username.php
or just try to modify the default welcome.php controller and rename it to username.php and change the class controller to class Username then try.

i hope it will work