K
K
kapai692014-11-24 11:09:31
symfony
kapai69, 2014-11-24 11:09:31

Symfony2 and mobile devices?

How do you solve the mobile device detection problem when developing on symphony? What bundles do you use, and in general I ask for recommendations on this in order to avoid pitfalls.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Sergey, 2014-11-24
Protko @Fesor

In general, we do nothing on the server regarding mobile devices. Everything is resolved from the client (feature detection, no binding to the user agent of the browser) and adaptive design if possible.
But if you really want to - there is https://github.com/browscap/browscap-php which uses a third-party service and therefore returns less up-to-date data. But you have to wrap it in caches.

A
Alex, 2014-11-24
@shoomyst

You can see https://github.com/suncat2000/MobileDetectBundle

A
Azim Kurt, 2014-11-24
@Symphony

css media query is our everything

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question