I am using Cakephp 2 as a backend for a cafe shop mobile application. I would like to use Sencha as the mobile framework.
I have the following questions:
- Should I be building the frontend within the CakePHP framework as layouts/views or should I use CakePHP to create a RESTful webservice in order to access my data?
- Can a complete cake application be wrapper using phonegap?
Thanks.
I would recommend building your mobile application separately from your Cake app. Like you mentioned, I would go with building a RESTful web service to provide your data. I would recommend using JSON, but that’s your decision.
Cake provides built in support for building RESTful web services, but you probably knew this. 🙂 http://book.cakephp.org/2.0/en/development/rest.html
A Cake application cannot be wrapped up inside PhoneGap since it needs to be run on a web server (Apache, IIS, etc)