How i can run Ember with PHP?


#1

Hey, Can anyone help me with that?

I have been using Wamp to run php at my localhost and (ember serve) to Ember, but i couldn’t figure out how to run them together.


#2

What do you mean with running them together?

An Ember app si just a bunch of regular files you may drop anywhere. Nothing prevents you from serving them with your Apache, it’s just a matter of setting it up to do so.


#3

You should take a look at customizing the adapter:

https://guides.emberjs.com/v2.5.0/models/customizing-adapters/

You should do something like:

import JSONAPIAdapter from 'ember-data/adapters/json-api';

export default JSONAPIAdapter.extend({
  namespace: 'api/',
  host: 'http://localhost:8080'
});