Quantcast
Channel: Ember.JS - Latest topics
Viewing all articles
Browse latest Browse all 4831

Connect to a mysql database via php

$
0
0

@vincenthure wrote:

Hello I try ti get data from a mysql server, so I a write a file on my server “API/waypoints.php” who read all the lines of my database and convert it to Json. When i go at this address with my browser it works. Well, ember’s side I go to “adapter/application.js” and put this

import DS from ‘ember-data’;

export default DS.JSONAPIAdapter.extend({ namespace: ‘API’, host: ‘https://192.168.0.24’ });

when I make : this.store.findAll(‘waypoint’), It didn’t work because the the url made by the adapter is https://192.168.0.24/API/waypoints not https://192.168.0.24/API/waypoints.php How can I fix that’s? Server’s side or Ember’s side? thank for help Vincent

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4831

Trending Articles