0
I have a project in which I should create a website and an application (Intel XDK) of the same, I thought it would be more ideal to have a 'core' of the application itself to make the database communication, so in the site only go ordering the data by PHP and in the application request by Ajax.
I know a little about the concept of Web Service, from what I understand, the Web Service could be this 'core', but I’ve never done one, I don’t know the structure of one and I don’t even know if that’s the purpose of a Web Service.
Would it really be ideal to use it? Or would it be better to share a Model?
I researched a lot about Web Service only that I could not understand how it is structured, someone could indicate or show a simple example so that I can start the base of my?
From the research I did, I think I can leave as it is, the site will be done with MVC, so just change the Controller to return the json array according to the origin of the request.
– Leonardo