|
|
|
@ -20,7 +20,7 @@ class FrontController
|
|
|
|
|
$router->setBasePath($altorouterPath);
|
|
|
|
|
|
|
|
|
|
$router->map('GET', '/', 'AppController');
|
|
|
|
|
$router->map('GET|POST', '/[a:action]?', 'NULL');
|
|
|
|
|
$router->map('GET|POST', '/[a:action]?/[i:id]?', 'NULL');
|
|
|
|
|
$router->map('GET|POST', '/admin/[i:id]/[a:action]?', 'Admin');
|
|
|
|
|
$router->map('GET|POST', '/teacher/[i:id]/[a:action]?', 'Teacher');
|
|
|
|
|
$router->map('GET|POST', '/student/[i:id]/[a:action]?', 'Student');
|
|
|
|
|