Skip to content

Commit 6ed019e

Browse files
authored
Fix missing function name
Example in the 'Handling Form Submissions' section was invalid, as the name of a function to be called (isValid) was missing.
1 parent 683010a commit 6ed019e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

forms.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ your controller::
234234

235235
$form->handleRequest($request);
236236

237-
if ($form->isSubmitted() && $form->()) {
237+
if ($form->isSubmitted() && $form->isValid()) {
238238
// $form->getData() holds the submitted values
239239
// but, the original `$task` variable has also been updated
240240
$task = $form->getData();

0 commit comments

Comments
 (0)