For extend or replace templates (or another types of resource files) you just have to create a folder in app/Resources with the name of the bundle, from which you want to extend the template, and put the new file inside a folder called ‘view’ following the same structure that it has in the vendor. For example for login.html.twig located in vendor/Sonata-project/user-bundle/resources/views/security/login.html.twig, you have to put it in app/Resources/SonataUserBundle/security/login.html.twig
Last active
September 4, 2016 21:00
-
-
Save redleafar/5b7e1fdc62bd31ee0b8d439dbdefccfd to your computer and use it in GitHub Desktop.
Extend templates from vendor bundles
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment