Welcome Guest, Not a member yet? Register   Sign In
matchbox and that old admin folder question
#4

[eluser]Phil Sturgeon[/eluser]
I have a global controller called controllers/admin.php that handles the admin login/logout and other boring functions like that, then each module has a admin.php controller of its own like Murodese above.

The routes you will need to get something like that going is:

Code:
$route['admin/([a-z]+)/(:any)'] = "$1/admin/$2";
$route['admin/login'] = "admin/login";
$route['admin/logout'] = "admin/logout";
$route['admin/([a-z]+)'] = "$1/admin/index";
$route['admin'] = "admin";

They could be condensed to one or two regex rules, but kept it like that for clarity.


Messages In This Thread
matchbox and that old admin folder question - by El Forum - 11-25-2008, 12:11 AM
matchbox and that old admin folder question - by El Forum - 11-25-2008, 04:36 AM
matchbox and that old admin folder question - by El Forum - 11-25-2008, 09:19 AM
matchbox and that old admin folder question - by El Forum - 11-26-2008, 10:14 AM
matchbox and that old admin folder question - by El Forum - 11-26-2008, 05:21 PM
matchbox and that old admin folder question - by El Forum - 11-27-2008, 03:49 AM
matchbox and that old admin folder question - by El Forum - 11-27-2008, 11:05 AM
matchbox and that old admin folder question - by El Forum - 12-17-2008, 10:16 AM
matchbox and that old admin folder question - by El Forum - 12-17-2008, 04:36 PM



Theme © iAndrew 2016 - Forum software by © MyBB