예제 #1
0
파일: index.php 프로젝트: emanuel029/tesis
 switch ($_REQUEST[ConfigApp::$ACTION]) {
     case ConfigApp::$ACTION_INDEX_LOGIN:
         $mainController = new controller();
         $mainController->mostrarLogin();
         break;
     case ConfigApp::$ACTION_INDEX_REGISTRO:
         $mainController = new controller();
         $mainController->mostrarRegistro();
         break;
     case ConfigApp::$ACTION_INDEX_LOGUEARSE:
         $mainController = new controller();
         $mainController->loguearse();
         break;
     case ConfigApp::$ACTION_INDEX_REGISTRARSE:
         $mainController = new controller();
         $mainController->registrarse();
         break;
     case ConfigApp::$ACTION_DESLOGUEARSE:
         $mainController = new controller();
         $mainController->desloguearse();
         break;
     case ConfigApp::$ACTION_CAMBIAR_SWITCH:
         $mainController = new controller();
         $mainController->cambiarswitch();
         break;
     case ConfigApp::$ACTION_AGREGAR_HABITACION:
         $mainController = new controller();
         $mainController->agregarHabitacion();
         break;
     case ConfigApp::$ACTION_ELIMINAR_HABITACION:
         $mainController = new controller();