How can I display data from a php file using sencha touch2 ?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You have several ways to achieve it but for me I will make use of json and
Ext.ajax.requestFor example my
example.phplook simple like this:As I have said, I’m using json so I will need to encode the
$arrayto retrieve it in view laterThen in your view you can get the data from php file using
Ext.util.JSONP.request()but here I will handle it byExt.Ajax.request()so:This maybe not the best way and possible have mistakes but at least I hope that it will be useful 🙂