8000 Merge pull request #376 from richardmiller/fixed_note_in_forms_page · phreaknerd/symfony-docs@38a0fa6 · GitHub
[go: up one dir, main page]

Skip to content

Commit 38a0fa6

Browse files
committed
Merge pull request symfony#376 from richardmiller/fixed_note_in_forms_page
Fixed note which refers to form factory method
2 parents 4747cdc + a507889 commit 38a0fa6

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

book/forms.rst

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -421,13 +421,9 @@ guess (``text``).
421421

422422
.. note::
423423

424-
The ``createBuilder()`` method takes up to three arguments (but only
425-
the first is required):
424+
The ``createFormBuilder()`` method takes up to two arguments neither
425+
of which are required):
426426

427-
* the string ``form`` stands for the what you're building (a form) and
428-
is also used as the name of the form. If you look at the generated
429-
code, the two fields are named ``name="form[price]"`` and ``name="form[name]"``;
430-
431427
* The default data to initialize the form fields. This argument can be an
432428
associative array or a plain old PHP object like in this example;
433429

0 commit comments

Comments
 (0)
0