Skip to content

Commit 4de8655

Browse files
authored
Use "children" property instead of "child"
Fix error: Neither the property "child" nor one of the methods "child()", "getchild()"/"ischild()"/"haschild()" or "__call()" exist and have public access in class "Symfony\Component\Form\FormView".
1 parent 63b36c7 commit 4de8655

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

form/form_customization.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ You can also apply a form theme to a specific child of your form:
385385

386386
.. code-block:: html+twig
387387

388-
{% form_theme form.child 'form/fields.html.twig' %}
388+
{% form_theme form.children 'form/fields.html.twig' %}
389389

390390
This is useful when you want to have a custom theme for a nested form that's
391391
different than the one of your main form. Just specify both your themes:
@@ -394,7 +394,7 @@ different than the one of your main form. Just specify both your themes:
394394

395395
{% form_theme form 'form/fields.html.twig' %}
396396

397-
{% form_theme form.child 'form/fields_child.html.twig' %}
397+
{% form_theme form.children 'form/fields_child.html.twig' %}
398398

399399
Form Theming in PHP
400400
-------------------

0 commit comments

Comments
 (0)