Welcome Guest, Not a member yet? Register   Sign In
default_controller problem
#2

[eluser]Doosje[/eluser]
I think you mean
Code:
$route['default_controller'] = 'welcome';
$route['welcome/([a-z0-9])'] = 'users/name/$1';
the uri becomes
http://localhost/welcome/username
and then loads controller users, function name, and passes the $1 to the function. (or you can work with the this->uri->segment or somethign similar.


Messages In This Thread
default_controller problem - by El Forum - 06-02-2008, 03:27 PM
default_controller problem - by El Forum - 06-02-2008, 03:51 PM
default_controller problem - by El Forum - 06-02-2008, 03:59 PM
default_controller problem - by El Forum - 06-02-2008, 09:23 PM
default_controller problem - by El Forum - 06-03-2008, 01:21 AM
default_controller problem - by El Forum - 06-03-2008, 09:34 AM
default_controller problem - by El Forum - 06-03-2008, 09:42 AM
default_controller problem - by El Forum - 06-03-2008, 07:04 PM



Theme © iAndrew 2016 - Forum software by © MyBB