diff --git a/form/action_method.rst b/form/action_method.rst index d97b5edd6be..8b46cd1c86e 100644 --- a/form/action_method.rst +++ b/form/action_method.rst @@ -27,6 +27,8 @@ form, you can use ``setAction()`` and ``setMethod()``: { public function new() { + // ... + $form = $this->createFormBuilder($task) ->setAction($this->generateUrl('target_route')) ->setMethod('GET')