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.

$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.

$route['admin'] = "admin";
$route['(:any)'] = "welcome/$1";

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.