Skip to content

Instantly share code, notes, and snippets.

@govaniso
Created August 2, 2012 18:17
Show Gist options
  • Save govaniso/3239314 to your computer and use it in GitHub Desktop.
Save govaniso/3239314 to your computer and use it in GitHub Desktop.
Acción para el registro de un nuevo usuario.
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