Skip to content

Instantly share code, notes, and snippets.

@vedovelli
Created July 19, 2012 14:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vedovelli/3144131 to your computer and use it in GitHub Desktop.
Save vedovelli/3144131 to your computer and use it in GitHub Desktop.
AngularJS and PhalconPHP
// With this, the $_POST global is empty
$http({
method: 'post',
url: url+'/remover',
data: unidade
}).success(function(data){
wi.console.log(data);
});
// By the other hand, using jQuery my data reaches PHP
$.ajax({
type: 'post',
url: url+'/remover',
data: unidade,
success: function(data){
wi.console.log(data);
}
});
/*
unidade object:
$$hashKey 004
CIDADE BH OU GRANDE BH
ESTADO MG
NOME SOL & AR MUNDO ÁGUA FUNCIONÁRIOS
REVENDA 1
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment