I have two doubts
1)I am using sencha touch 2.1 for my application. And i want to create a common class for AJAX request because i am going to call from many controllers. Now my question is inside which directory(like model,store,controller) the common class for AJAX will come.And how i refer that class in app.js
2)I want to set some configs like common url,text,etc for my app. How can i achieve this.
Thanks in advance.
1)
Ext.Ajaxis a singleton class of Ext.data.Connection, so you can already use it throughout your application without creating many instances.2) As stated in the
Ext.Ajaxdocumentation, you can simply setExt.data.Connectionconfigs on theExt.Ajaxinstance.You can get a list of all the available configs by looking at the Ext.data.Connection class reference.