Welcome Guest, Not a member yet? Register   Sign In
Behavior of default controllers in sub-folders
#2

[eluser]Bryan Zera[/eluser]
Ok, I found a workaround for those interested. Use the following two lines of routing:

$route['phonebook/admin/(.*)'] = "phonebook/admin/$1";
$route['phonebook/(:any)/(:any)'] = "phonebook/main/$1/$2";

The first line picks up any requests to your admin controller (and is redundant, but necessary).

The second line grabs any other traffic and explicitly calls the default controller, all while your URLs stay blissfully free of the default controller.


Messages In This Thread
Behavior of default controllers in sub-folders - by El Forum - 02-26-2008, 12:31 PM
Behavior of default controllers in sub-folders - by El Forum - 02-26-2008, 02:04 PM



Theme © iAndrew 2016 - Forum software by © MyBB