PDA

View Full Version : Syncing with PHP/MySQL Backend



carrollecc
5 Jan 2012, 11:59 AM
Hello Folks,
Please forgive this newbie question as I am well, a newbie! I have looked everywhere and apparently it's either so obvious and I missing it (highly likely), or I am looking in all the wrong places.

I am trying to sync my store with my PHP/MySQL backend. Using Chrome's console I have determined that the information is posted to the server. I figured this was the case, but what I haven't figured out is how do I know if this post request is a create, update, or destroy. I have looked at all the header information, passed parameters, the data itself, and nothing seems to indicate what type it is. What am I missing?

Thanks!

mitchellsimoens
5 Jan 2012, 12:21 PM
The request method should be different by default.

carrollecc
5 Jan 2012, 12:27 PM
I have found the answer to my own problem. I found Ext.data.proxy.Server (http://docs.sencha.com/ext-js/4-0/#!/api/Ext.data.proxy.Server-cfg-api) api config option. As soon as I put the information in there it worked like I wanted. Thanks!