-
20 May 2012 12:07 PM #1
Answered: How can I integrate PHP with Sencha Touch 2.x?
Answered: How can I integrate PHP with Sencha Touch 2.x?
Hello,
I'm a total newbie to Sencha, but I have php mobile site that I'd like to merge with Sench Touch. I've been using php for initiating cookies and grabbing data from a database using mysql... I have a good understanding of javascript but I don't know a lot about JSON or Ajax. Is there good tutorial somewhere where I can figure out how to integrate Sencha Touch and a php mobile site together? I've already generated my first app following the "Getting Started with Sencha Touch 2" guide, so I have a good idea of how it all works... I'm open to any suggestions. Thank you for your time.
Sorry, I just realized that I posted this message in the wrong discussion area... if anybody can show me how or move this message to the "Sencha Touch 2.x: Q&A". That would be great... again, sorry for the hassel.Last edited by Colorado143; 20 May 2012 at 7:57 PM. Reason: Accidentally posted in the wrong discussion forum.
-
Best Answer Posted by Möhre
Your post is in the ST 1.x forum

Use Ext.Direct which is supported by SenchaTouch 2.0:
http://www.sencha.com/products/extjs/extdirect//?ref=family
The easiest php connection is this one:
http://www.sencha.com/forum/showthread.php?102357-Extremely-Easy-Ext.Direct-integration-with-PHP
Some more links:
http://docs.sencha.com/ext-js/4-1/#!...ct/direct.html
http://www.sencha.com/forum/showthread.php?67992-Ext.Direct-Server-side-Stacks
http://www.sencha.com/forum/showthread.php?68186-Alternative-Ext-Direct-PHP-Implementation
http://www.sencha.com/forum/showthread.php?97799-Any-examples-of-using-ext.direct-with-server-side-user-authentication
http://www.sencha.com/forum/showthread.php?138490-Ext.application-and-Ext.direct-How-to-setup
http://code.google.com/p/ext-direct-mvc/
http://www.sencha.com/forum/showthread.php?206005-Facing-Problem-while-using-Ext-Direct
-
21 May 2012 11:48 AM #2
How can I integrate PHP with Sencha Touch 2.x?
How can I integrate PHP with Sencha Touch 2.x?
Hello,
I'm a total newbie to Sencha, but I have a php mobile site that I'd like to merge with Sench Touch. I've been using php for initiating cookies and grabbing data from a database using mysql... I have a good understanding of javascript, but I don't know a lot about JSON or Ajax. Is there good tutorial somewhere where I can figure out how to integrate Sencha Touch and a php mobile site together? I've already generated my first app following the "Getting Started with Sencha Touch 2" guide, so I think have a good idea of how it all works... I'm open to any suggestions. Thank you for your time.
-
22 May 2012 2:59 AM #3
Your post is in the ST 1.x forum

Use Ext.Direct which is supported by SenchaTouch 2.0:
http://www.sencha.com/products/extjs/extdirect//?ref=family
The easiest php connection is this one:
http://www.sencha.com/forum/showthread.php?102357-Extremely-Easy-Ext.Direct-integration-with-PHP
Some more links:
http://docs.sencha.com/ext-js/4-1/#!...ct/direct.html
http://www.sencha.com/forum/showthread.php?67992-Ext.Direct-Server-side-Stacks
http://www.sencha.com/forum/showthread.php?68186-Alternative-Ext-Direct-PHP-Implementation
http://www.sencha.com/forum/showthread.php?97799-Any-examples-of-using-ext.direct-with-server-side-user-authentication
http://www.sencha.com/forum/showthread.php?138490-Ext.application-and-Ext.direct-How-to-setup
http://code.google.com/p/ext-direct-mvc/
http://www.sencha.com/forum/showthread.php?206005-Facing-Problem-while-using-Ext-Direct
-
22 May 2012 5:09 AM #4Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 34,107
- Vote Rating
- 453
- Answers
- 3157
For a ST2 app, PHP is basically just a backend for Ajax calls where you can return JSON. This is easily done by doing a json_encode(array) on an array/object.
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
23 May 2012 7:00 AM #5Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 34,107
- Vote Rating
- 453
- Answers
- 3157
@Colorado143 Please do not post the same thing more than once. I have merged your two threads.
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
29 May 2012 2:32 PM #6
@mitchellsimoens - Thanks and I won't do it again.


Reply With Quote