Skip to content

Commit

Permalink
minor #5866 Fixed little typo with a twig example (artf)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
xabbuh committed Nov 5, 2015
2 parents 5f028c1 + 758e5c9 commit 04df1be
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cookbook/doctrine/registration_form.rst
Original file line number Diff line number Diff line change
Expand Up @@ -298,10 +298,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) }}

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

0 comments on commit 04df1be

Please sign in to comment.