How to pass XML from Cakephp using helper to the iPhone app
I'm stuck here...
Is there a way we can get results from MySQL database transform to XML with the option of sending as JSON to iPhone App using Cakephp XML helper?
If someone c开发者_如何学Could kindly help me with some answer, that would be much appreciated!
Thank you. Jae
What you are trying to do is expose the functionality of the server to other applications, in this case a mobile phone app. I would suggest that you do it using REST which is detailed here - Create a REST-style API with CakePHP and XML.
You can change it as need to return JSON as well.
精彩评论