I m trying to embed the login form of FOSUserBundle in a template with this:
{% render "FOSUserBundle::Security::login" %}
但我想到:
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.
我也试图这样做:
{% 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.").
任何想法?