From e7179e79f6006ed25701c0d01efe3e3e8f83e7a9 Mon Sep 17 00:00:00 2001 From: artf Date: Thu, 5 Nov 2015 21:48:38 +0100 Subject: [PATCH] Fixed little typo with a twig example Was stuck with this throw: Twig_Error_Runtime: An exception has been thrown during the rendering of a template ("Catchable Fatal Error: Argument 1 passed to Symfony\Component\Form\FormRenderer::searchAndRenderBlock() must be an instance of Symfony\Component\Form\FormView, string given, called in.... --- cookbook/doctrine/registration_form.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cookbook/doctrine/registration_form.rst b/cookbook/doctrine/registration_form.rst index f03a53164a2..0cb19d8d40a 100644 --- a/cookbook/doctrine/registration_form.rst +++ b/cookbook/doctrine/registration_form.rst @@ -295,10 +295,10 @@ Next, create the template: {# app/Resources/views/registration/register.html.twig #} {{ form_start(form) }} - {{ form_row('form.username') }} - {{ form_row('form.email') }} - {{ form_row('form.plainPassword.first') }} - {{ form_row('form.plainPassword.second') }} + {{ form_row(form.username) }} + {{ form_row(form.email) }} + {{ form_row(form.plainPassword.first) }} + {{ form_row(form.plainPassword.second) }} {{ form_end(form) }}