Routing

#1
[eluser]Guntars[/eluser]
I have problems to routing, but solution probably s very simple.

I try to explain problem. I want to use one default controller for all site, instead admin.

In another words all links i want to transfer to default controller /welcome this is very simple.

Code:
$route['(:any)'] = "welcome/$1";
But the problem is I want to use /admin as different controlier. How do I can setup :any instead admin. In routing.

#2
[eluser]n0xie[/eluser]
Code:
$route['admin'] = "admin";
$route['(:any)'] = "welcome/$1";

#3
[eluser]Guntars[/eluser]
Hmm, looks simple but not works, need something else. Any Ideas?


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.