Welcome Guest, Not a member yet? Register   Sign In
Basic index($variable) question for creating a site like www.mysite.com/username
#13

[eluser]AlanW[/eluser]
Thank you all!

[quote author="siptik" date="1352754725"]try this:
Code:
$route[‘default_controller’] = “main”;
route $route["(:any)"] = ‘main/index/$1’
$route[‘404_override’] = ‘’;
[/quote]

I added this:

$route['(:any)'] = "main/index/$1";

to my routes config file.

The www.mysite.com/username is now recognized by

public function index ($username){
}

BUT my other controllers such as www.mysite.com/notitications (controller is notifications.php ) are now not functioning. I finally get it - the site now thinks that there is only one page - not my plan. Is there some way to again recognize the the other controllers?



Messages In This Thread
Basic index($variable) question for creating a site like www.mysite.com/username - by El Forum - 11-12-2012, 02:29 PM



Theme © iAndrew 2016 - Forum software by © MyBB