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

[eluser]cartalot[/eluser]
if you can deal with one extra word in the URL it will greatly simplify what you want to do
something like 'users'

www.xyz.com/users/abc

and then set up a route like
$route['users/(:any)'] = "users/display";

where your controller is called users, with a method called display, that searches for the user and displays them.
note that - whats cool is that the route can direct to any controller and method, it doesn't need to be the same name,

$route['users/(:any)'] = "customers/find";


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