I’m trying to embed the login form of FOSUserBundle in a template with
this:
{% render "FOSUserBundle::Security::login" %}
but I’m getting this:
An exception has been thrown during the rendering of a template
(“Class “FOSUserBundle” does not exist.”) in
“AibFrontendBundle:General:home.html.twig” at line 6.
I have tried also this:
{% render "UserBundle::Security::login" %}
but the error is the same (An exception has been thrown during the
rendering of a template (“Class “UserBundle” does not exist.”).
Any idea?
Try this instead (single
:after the bundle name):This short notation expands to
FOS\UserBundle\Controller\SecurityController::loginAction. The double colon separates class name from method name.