8000 minor #5866 Fixed little typo with a twig example (artf) · symfony/symfony-docs@04df1be · GitHub
[go: up one dir, main page]

Skip to content

Commit 04df1be

Browse files
committed
minor #5866 Fixed little typo with a twig example (artf)
This PR was submitted for the 2.7 branch but it was merged into the 2.3 branch instead (closes #5866). Discussion ---------- Fixed little typo with a twig example | Q | A | ------------- | --- | Doc fix? | yes | New docs? | no | Applies to | 2.7 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.... ``` Commits ------- 758e5c9 Fixed little typo with a twig example
2 parents 5f028c1 + 758e5c9 commit 04df1be

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cookbook/doctrine/registration_form.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -298,10 +298,10 @@ Next, create the template:
298298
{# app/Resources/views/registration/register.html.twig #}
299299

300300
{{ form_start(form) }}
301-
{{ form_row('form.username') }}
302-
{{ form_row('form.email') }}
303-
{{ form_row('form.plainPassword.first') }}
304-
{{ form_row('form.plainPassword.second') }}
301+
{{ form_row(form.username) }}
302+
{{ form_row(form.email) }}
303+
{{ form_row(form.plainPassword.first) }}
304+
{{ form_row(form.plainPassword.second) }}
305305

306306
<button type="submit">Register!</button>
307307
{{ form_end(form) }}

0 commit comments

Comments
 (0)
0