Custom FOSUserBundle Login Template using Bootstrap

前端 未结 2 1197
逝去的感伤
逝去的感伤 2021-01-03 06:12

I\'ve installed Symfony2, FOS User Bundle and Twitter Bootstrap.

Then I setup the /app/Resources/FOSUserBundle/views/layout.html.twig template to override FOSUserBun

2条回答
  •  无人及你
    2021-01-03 06:55

    Richard Miller's post has helped me achieve what I was trying to do.

    http://richardmiller.co.uk/2013/02/18/symfony2-ajax-and-full-page-templates/

    {% extends app.request.attributes.get('partial')
         ? '::ajax-layout.html.twig'
         : '::full-layout.html.twig' %}
    

    I couldn't get app.request.partial to work, and decided choosing based on xmlRequest wasn't ideal.

提交回复
热议问题