【问题标题】:symfony 5 override a2lix translation-form-bundle template not workingsymfony 5 覆盖 a2lix 翻译表单捆绑模板不起作用
【发布时间】:2021-03-23 07:39:47
【问题描述】:

我安装了 a2lix/translation-form-b​​undle,然后运行

php bin/console debug:twig @A2lixTranslationForm/bootstrap_4_layout.html.twig

我明白了

@A2lixTranslationForm   vendor/a2lix/translation-form-bundle/src/Resources/views/

所以,我创造了

templates/bundles/TranslationFormBundle/bootstrap_4_layout.html.twig

当我清理缓存时,覆盖不起作用。为什么以及如何解决?

https://symfony.com/doc/current/bundles/override.html#templates

【问题讨论】:

    标签: symfony templates overriding


    【解决方案1】:

    正确的路径是

    templates/bundles/**A2lix**TranslationFormBundle/bootstrap_4_layout.html.twig
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-11-30
      • 2016-01-06
      • 2013-10-09
      • 2020-09-29
      相关资源
      最近更新 更多