Symfony2 Registration and Login

$user= new User();
$user= $form->getData();

this part of the code is “just magic”, I would say that needs a little bit more explanation, at least for me.

You should consider using the bootstrap template as default in symfony2, above 2.6, to have even simpler views

thanks for the article