Reputation: 3938
I read that there is an option to create a mobile app in symfony2 and I don't really understand how to create it. As much as I do understand the concepct of emulating HTML5 to native app I don't know HOW to do the same thing with symfony.
Lets say that we created the app in html5. We just go through the process with PhoneGap and it creates the native app ( yeah, I know, very simplified ). But how should I do it with Symfony? I mean.. is there any similar emulator for php and...all the files that symfony contains or.. or what? How to make it work on iOS, how on Android, how on Windows Phone and BlackBerry..
Sorry for dumb question but I couldn't find proper answer.
Upvotes: 1
Views: 5815
Reputation: 21
IMHO, symfony provides a solid framework for HTTP and restful API through which jQuery mobile can be configured and then if you extend TWIG for a template, then Symfony acts as the bundler and composer through with routing can take place. While Symfony does not run native apps, they need to retrieve and store data and on that front a framework such as Symfony works well. So one could argue that one could use APIs for multiple clients (iOS, Android and more) and then reuse controllers and use formats to generate XML/JSON thus theoretically it should work with Phonegap too.
Upvotes: 2
Reputation: 5799
No questions are dumb when it's asked in real sense :)
Web App is different from Mobile App.
Symfony is a PHP framework and its no where realted to Phonegap/Cordova. PhoneGap/Cordova uses HTML, CSS and some javascript. You can use some PHP for some backend services but not for the app itself.
So my final point would be you can not use Symfony to create a phonegap app.
Upvotes: 4