From d653ff4b621d82bb0f1ac7fd5cb2a9b495fbe074 Mon Sep 17 00:00:00 2001 From: oopsFrogs Date: Fri, 24 Oct 2014 08:11:37 +0800 Subject: [PATCH 1/2] Update form_customization.rst In the Form chapter of Book for Symphony 2.3, we use '{{ form(form) }}' to render the entire form ( in contrast to '{{ form_widget(form) }}' for older version of Symfony ). so maybe it should use '{{ form(form) }}' here for consistency. --- cookbook/form/form_customization.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookbook/form/form_customization.rst b/cookbook/form/form_customization.rst index 41361bf6775..c3750163157 100644 --- a/cookbook/form/form_customization.rst +++ b/cookbook/form/form_customization.rst @@ -67,7 +67,7 @@ just one line: .. code-block:: jinja - {{ form_widget(form) }} + {{ form(form) }} .. code-block:: php From 0086c5e943856a34f9f2f2f87f3f4b29745ddccb Mon Sep 17 00:00:00 2001 From: WouterJ Date: Fri, 31 Oct 2014 11:16:29 +0100 Subject: [PATCH 2/2] Applied suggestion by Ryan --- cookbook/form/form_customization.rst | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/cookbook/form/form_customization.rst b/cookbook/form/form_customization.rst index c3750163157..cd3eedb2b15 100644 --- a/cookbook/form/form_customization.rst +++ b/cookbook/form/form_customization.rst @@ -67,11 +67,19 @@ just one line: .. code-block:: jinja + {# renders all fields #} + {{ form_widget(form) }} + + {# renders all fields *and* the form start and end tags #} {{ form(form) }} .. code-block:: php - widget($form); ?> + + widget($form) ?> + + + form($form) ?> The remainder of this recipe will explain how every part of the form's markup can be modified at several different levels. For more information about form