Category: action

Symfony – Form not redirecting to action specified in form

I’m trying to make a form, which I self-defined the action like this in my controller: $form = $this->createForm(ProgrammeSearchType::class, $search, [ ‘action’ => $this->generateUrl(‘recherche_programme’), ‘method’ => ‘GET’, ]); But, the form rendered in the view look like this: <form id=”myForm”>…