... $form = $this->createForm(...); ... return $this->render('RegTicket/index.html.twig', [ 'form'=> $form->createView() // Passage du formulaire au template ]);
{% block body %} <div class="container"> {{form(form)}} </div> {% endblock %}