Hey ya’ll, It’s good to be back, it’s been about a year since I have used Ember and PHP together and all my working examples were lost (yes backup your backups). Anyway, I have my very simple application setup, no errors yet there is no data showing up on ember’s side. Could you please tell me if this is the correct JSON format Ember is looking for - I have tried JSONAPIAdapter and RESTAdapter both.
This is my php (I have 2 headers, one for CORS and one for JSON) for($i = 0; $i<count($output); $i++){
$response["contact"][$i] = [];
$response["contact"][$i]["fname"] = $output[$i]["fname"];
$response["contact"][$i]["lname"] = $output[$i]["lname"];
}
json_encode($response, JSON_PRETTY_PRINT);
Here is the JSON output