Created
February 7, 2018 22:20
-
-
Save parzibyte/3e63d62a6c6db54e22a11253d7c69e1e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$collector->put("/usuario/{id}", function($id){ | |
$usuario = file_get_contents("php://input"); //Si es por AJAX | |
$usuario = $_POST["usuario"]; //Si es por un formulario, cosa no recomendable | |
echo "Editamos el usuario con el id $id"; | |
//Aquí agregar la magia :) | |
}); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment