I have a HTML form written in plain HTML (i.e. not using a createFormBuilder
object) and I want my controller to handle the submission of that form in the same way that it would if I had created it using createFormBuilder
.
My form's path
is the same as the @route
for the method in the controller, but I can't find an alternative to
$form->handleRequest($request);
if ($form->isSubmitted() ) {
}
Should I just do it the symfony way?