Created
August 2, 2012 18:17
-
-
Save govaniso/3239314 to your computer and use it in GitHub Desktop.
Acción para el registro de un nuevo usuario.
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
public function index() { | |
Load::model("Usuarios"); | |
$Usuarios = new Usuarios(); | |
if(Input::has['usuarios']){ | |
if ($Usuarios->registrar(Input::post['usuarios'])) { | |
View::response('success'); | |
}else{ | |
View::response('error'); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment