symfony 5 重写 a2lix 翻译表单包模板不起作用
symfony 5 override a2lix translation-form-bundle template not working
我安装了 a2lix/translation-form-bundle,我 运行
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
正确的路径是
templates/bundles/**A2lix**TranslationFormBundle/bootstrap_4_layout.html.twig
我安装了 a2lix/translation-form-bundle,我 运行
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
正确的路径是
templates/bundles/**A2lix**TranslationFormBundle/bootstrap_4_layout.html.twig