I've done quite a lot of posting with Angular, however I've never received a response and I'm having trouble with it.
PHP
<?php
return "testing";
?>
I'm actually unsure whether I should use return or echo here. I've tried both. And the Angular documentation doesn't provide much insight into the server side scripts.
This is in my Controller:
this.acquireImages = function() {
$http.get("resources/php/gallery.php").success(function(response){
this.returnData = response.data;
});
};
this.acquireImages();
I've defined returnData before just to make sure it wasn't something simple like not displaying the correct variable, etc.
I've seen the documentation here and I'm following as well as I can, but I can't seem to get this simple example to work.