Skip to content

Commit 7079759

Browse files
authored
Fix passing Form instead of FormView to template
1 parent 46cc24b commit 7079759

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

forms.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ Now that the form has been created, the next step is to render it::
290290
$form = $this->createForm(TaskType::class, $task);
291291

292292
return $this->render('task/new.html.twig', [
293-
'form' => $form,
293+
'form' => $form->createView(),
294294
]);
295295
}
296296
}

0 commit comments

Comments
 (0)