i want change default style login form in fosuserbundle. in bundle, in views/layout.html.twig write this:
<!doctype html> <html> <head> {% block stylesheets %} <link href="{{ asset('/bundles/user/css/demo.css') }}" type="text/css" rel="stylesheet" /> {% endblock %} </head> <body> {% block body %} {{ block('fos_user_content') }} {% endblock %} </body> </html>
then in terminal put this:
app/console assets:install web --symlink
after web/bundles/user/css/demo.css
but after cleaning cache firebug don't show included css files...why ?
just override fosuserbundle::layout.html.twig via bundle inheritance creating template at:
app/resources/fosuserbundle/views/layout.html.twig
this template has contain block fos_user_content.
the original base template fosuserbundle can found here.
further reading in cookbook article overriding bundle templates.
Comments
Post a Comment