Symfony 2 load different template depending on user agent properties

后端 未结 8 1416
时光取名叫无心
时光取名叫无心 2020-12-02 17:28

Is it possible (and how) to

  • determine if a user is using a mobile device
  • force symfony 2 to load different template in that case
  • <
8条回答
  •  -上瘾入骨i
    2020-12-02 17:50

    From my experiences, you can but by specifying a format in the first place - check these docs, they may be able to assist you

提交回复
热议问题