Created
July 19, 2012 14:00
-
-
Save vedovelli/3144131 to your computer and use it in GitHub Desktop.
AngularJS and PhalconPHP
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
// 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