Reputation: 4539
I tried everything that is reported in the docs here as well as here and on Stackoverflow.
Declaring app\Resources\FOSUserBundle\views\ChangePassword\changePassword_content.html.twig
doesn't work. The replaced translations in app/Resources/FOSUserBundle/translations/FOSUserBundle.fr.yml
are fine, so the directory should be ok... But it simply won't replace the template.
I tried also to put it in my child bundle that override the FOSUserBundle
in the views and it didn't work either (I guess for this to work I would have to override controllers as well as the FormType, and I don't need that currently I simply want to style the form).
Is there a configuration to do somewhere that I'm missing ?
Thanks ahead !
Upvotes: 0
Views: 78
Reputation: 35139
The file in FosuserBundle is named ChangePassword/change_password_content.html.twig
- it's useful to copy the original file and then edit it to help ensure it is exactly the same.
A version update in the 2.0beta moved files to 'under_score' casing (directory paths are still in MixedCase).
The link referring to changePassword_content.html.twig
wasn't relevant, and was ultimately wrong.
Upvotes: 2