How can I Override HWIOAuthBundle twig file

后端 未结 2 2023
伪装坚强ぢ
伪装坚强ぢ 2021-01-14 16:51

I am new in HWIOAuthBundle with Symfony2.3 +FosUserBundle. I am using this bundle for facebook, twitter, googleplus login in my project.

I have successfully install

2条回答
  •  伪装坚强ぢ
    2021-01-14 17:22

    You have two solutions for that :

    1. Use bundle inheritance and refine the template with parent path
    2. Declare a template in you app/Ressources/ like that : app/Ressources/AcmeBundle/Directory/template.html.twig (where /AcmeBundle/Directory/template.html.twig is the exact same path to the template in your vendor)

    Doc :

    • http://symfony.com/doc/current/cookbook/bundles/inheritance.html
    • http://symfony.com/doc/2.0/book/templating.html#overriding-bundle-templates

提交回复
热议问题