Example #1
0
 function procesar(&$nextAction)
 {
     $usuario = new Usuario();
     $datos = $usuario->getByNombreUsuario($_REQUEST['nombre']);
     $rol = $usuario->getRolByNombreUsuario($_REQUEST['nombre']);
     RegistryHelper::registerUser($datos['usuario'][0], $datos['id'][0], $rol);
     //Codigo de ReturnTo
     $returnAction = $_GET['returnAction'];
     if (isset($_GET['returnAction'])) {
         $nextAction->setRedirect("?" . urldecode($returnAction));
     } else {
         $nextAction->setNextAction("Inicio");
     }
 }