1. #1
    Sencha User
    Join Date
    May 2012
    Posts
    12
    Vote Rating
    0
    Colorado143 is on a distinguished road

      0  

    Default 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.


  2. #2
    Sencha User
    Join Date
    May 2012
    Posts
    12
    Vote Rating
    0
    Colorado143 is on a distinguished road

      0  

    Default 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.

  3. #3

  4. #4
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,074
    Answers
    3500
    Vote Rating
    854
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    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
    ________________
    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 in print!

    When posting code, please use BBCode's CODE tags.

  5. #5
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,074
    Answers
    3500
    Vote Rating
    854
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    @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
    ________________
    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 in print!

    When posting code, please use BBCode's CODE tags.

  6. #6
    Sencha User
    Join Date
    May 2012
    Posts
    12
    Vote Rating
    0
    Colorado143 is on a distinguished road

      0  

    Default


    @mitchellsimoens - Thanks and I won't do it again.