Skip to content

Commit

Permalink
Clarified variable passing in recursive form rendering.
Browse files Browse the repository at this point in the history
  • Loading branch information
advancingu authored and weaverryan committed Oct 17, 2012
1 parent 1406b34 commit edca4da
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion reference/forms/twig_reference.rst
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ or collection of fields, each underlying form row will be rendered.
The second argument to ``form_widget`` is an array of variables. The most
common variable is ``attr``, which is an array of HTML attributes to apply
to the HTML widget. In some cases, certain types also have other template-related
options that can be passed. These are discussed on a type-by-type basis.
options that can be passed. These are discussed on a type-by-type basis. Note
that in case the first argument is a form, all ``variables`` will
only be applied to the form itself and not its children.

form_row(form.name, variables)
------------------------------
Expand Down

0 comments on commit edca4da

Please sign in to comment.