<!DOCTYPE html> <html> <head> <title>MapController Tests</title> </head> <body> <h1>MapController Tests</h1> <h3>Should call MapController::run()</h3> <hr/> <?php include_once "../includer.php"; MapController::run(); ?> </body> </html>
###(SECTION) Redirect switch ($control) { case "sign-up": SignUpController::run(null); break; case "log-in": LogInController::run(null); break; case "dashboard": DashboardController::run(null); break; case "profile": ProfileController::run(null); break; case "edit-profile": EditProfileController::run(null); break; case "build-map": MapController::run(null); break; case "log-out": LogOutController::run(null); break; default: if (array_key_exists("session", $_COOKIE)) { DashboardController::run(null); } else { LandingView::show(null); } } ###(ENDSECTION) Redirect