Welcome Guest, Not a member yet? Register   Sign In
how to put username after domain name
#2

[eluser]CroNiX[/eluser]
You can do this with routes, but it would be a bit complicated because you'd be breaking the default way CI maps the url to a controller/method (there would be no controller/method in the url). So you'd need to create a route for every controller that you use, and then at the very end of them have a catch-all route like
$route['(:any)'] = 'controller/method/$1';
Where it would pass whatever was after the domain name in the URL to the 'controller/method' that you want to use.

You need all of the other controllers mapped before that route though, or no other controller could be accessed since it will send everything to that one controller that you want to use to display the profile (or whatever).


Messages In This Thread
how to put username after domain name - by El Forum - 11-20-2012, 11:15 AM
how to put username after domain name - by El Forum - 11-20-2012, 11:28 AM
how to put username after domain name - by El Forum - 11-20-2012, 11:43 AM
how to put username after domain name - by El Forum - 11-20-2012, 11:45 AM
how to put username after domain name - by El Forum - 11-20-2012, 12:34 PM
how to put username after domain name - by El Forum - 01-11-2013, 09:03 AM
how to put username after domain name - by El Forum - 01-11-2013, 10:34 AM
how to put username after domain name - by El Forum - 01-23-2013, 08:12 PM



Theme © iAndrew 2016 - Forum software by © MyBB