From 963ced45701efd9d1c1bbfca063924b7d17d0b4d Mon Sep 17 00:00:00 2001 From: Hocdoc Date: Tue, 1 Mar 2016 15:36:03 +0100 Subject: [PATCH 1/2] Remove third parameter from createFormBuilder call --- components/form/introduction.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/form/introduction.rst b/components/form/introduction.rst index 08137d1b3ca..bf0ad31348f 100644 --- a/components/form/introduction.rst +++ b/components/form/introduction.rst @@ -526,7 +526,7 @@ by ``handleRequest()`` to determine whether a form has been submitted): public function searchAction() { - $formBuilder = $this->createFormBuilder('form', null, array( + $formBuilder = $this->createFormBuilder('form', array( 'action' => '/search', 'method' => 'GET', )); From 1797671c4f857b383ac934838ecf424623139949 Mon Sep 17 00:00:00 2001 From: Hocdoc Date: Tue, 1 Mar 2016 16:10:34 +0100 Subject: [PATCH 2/2] Update introduction.rst --- components/form/introduction.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/form/introduction.rst b/components/form/introduction.rst index bf0ad31348f..d2c2189c7a6 100644 --- a/components/form/introduction.rst +++ b/components/form/introduction.rst @@ -526,7 +526,7 @@ by ``handleRequest()`` to determine whether a form has been submitted): public function searchAction() { - $formBuilder = $this->createFormBuilder('form', array( + $formBuilder = $this->createFormBuilder(null, array( 'action' => '/search', 'method' => 'GET', ));