Welcome Guest, Not a member yet? Register   Sign In
Routing and Remap
#3

[eluser]tomcode[/eluser]
I use one schema for the routes:

Code:
$route['default_controller'] = 'pages';

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

$route['auth/(:any)'] = 'auth/$1';
$route['auth'] = 'auth';

This gives me one common way how to build the controllers and yes, all uri segments are preserved.

Right now I work with a common _remap() in MY_Controller which I still can override.


Messages In This Thread
Routing and Remap - by El Forum - 02-07-2010, 02:34 AM
Routing and Remap - by El Forum - 02-07-2010, 04:20 PM
Routing and Remap - by El Forum - 02-07-2010, 04:47 PM
Routing and Remap - by El Forum - 02-07-2010, 04:50 PM
Routing and Remap - by El Forum - 02-07-2010, 04:54 PM
Routing and Remap - by El Forum - 02-07-2010, 04:56 PM
Routing and Remap - by El Forum - 02-07-2010, 05:05 PM
Routing and Remap - by El Forum - 02-07-2010, 05:29 PM



Theme © iAndrew 2016 - Forum software by © MyBB