I
I
Igor09832016-09-04 20:16:51
Yii
Igor0983, 2016-09-04 20:16:51

Mobile detector how to use it?

how to specify which layouts or subdomain to go to

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Maxim Timofeev, 2016-09-04
@webinar

https://github.com/DKeeper/yii2-mobiledetect - a hideous widget for an interesting solution.
I would throw out everything except lib/Mobile_Detect.php
Connected as a component in the config, and made the isMobile function in it, it would also be possible to implement a layout replacement or use isMobile in beforeAction. And you can write isMobile to the session.
As a widget, it is only suitable for prescribing classes, but in the presence of media queries, and the bootstrap grid itself, the question arises of the sanity of the one who will do it.

I
Igor0983, 2016-09-04
@Igor0983

https://github.com/DKeeper/yii2-mobileddetect

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question