我正在尝试覆盖FOSUserBundle模板,如下所示:
https://github.com/FriendsOfSymfony/FOSUserBundle/blob/master/Resources/doc/overriding_templates.md
我使用了第二种方法,我创建了自己的bundle并将模板放在myBundle / Resources / Views / Security / login.html.twig中
和
myBundle /资源/查看/注册/ register.html.twig .
两个模板都以:
{% extends "::nologbase.html.twig" %}
其中nologbase.html.twig在app / Resourcer / views中定义 .
好吧,第一个(登录)正确显示,但第二个(登记)显示没有CSS的行html . 我清除了缓存,我还试图只显示扩展模板并比较源代码 . 它完全一样!
任何的想法?
谢谢