Symfony2 - override template bundle

后端 未结 1 804
猫巷女王i
猫巷女王i 2021-01-21 07:28

I want to override the default SonataAdmin Template.

I create a standard_layout.html.twig in my Namespace/bundle/resources/views (same structur, same file name, same con

1条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-21 07:58

    You have the solution of bundle heritance http://symfony.com/doc/current/cookbook/bundles/inheritance.html which allows, not only override templates but methods too.

    Or you have http://symfony.com/doc/2.0/book/templating.html#overriding-bundle-templates which focusing only on templates.

    With this last, you can try to create :

    app/Resources/SonataAdminBundle/views/CRUD/base_show_field.html.twig
    

    0 讨论(0)
提交回复
热议问题