I am using the FOSUserBundle in my Symfony application, I have the login and register forms in a separate template. I want both in one template to display them next to each other.
plz help me save my day !!
I am using the FOSUserBundle in my Symfony application, I have the login and register forms in a separate template. I want both in one template to display them next to each other.
plz help me save my day !!
1 You need to have a first controller with a
loginAction
that renders alogin.html.twig
template. Let's assume this controller isAcmeUserBundle:Security:login
.2 You need to have a second controller with a
registerAction
that renders aregister.html.twig
template. Let's assume this controller isAcmeUserBundle:Registration:register
3 Create a third controller, for example
welcomeAction
that renders awelcome.html.twig
template, and embed the controllers above on the same page.See here for more informations on how to embed controllers.