1
votes

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.

2
Since Symfony2 is a PHP framework, I seriously doubt it could in any way generate a compiled Java application. Maybe the author meant you can use Symfony2 apps as Backend for your app or even include it's generated HTML in you PhoneGap ? Link?ToBe
This link shows that you can create a normal HTML website on a server that produces HTML code optomized for mobile web browsers (by using JQuery mobile). It is NOT creating a native mobile app. Not even a hybrid like PhoneGap does. The title is misleading. ;)ToBe
holly cow xD and what about this link: sitepoint.com/building-web-app-symfony-2-developmentmmmm
Second link only show how to use Symfony2 to do what it is designed to do: Create web pages, not native mobile apps.ToBe

2 Answers

4
votes

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.

2
votes

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.