Skip to content

Instantly share code, notes, and snippets.

@weaverryan
Last active January 13, 2018 19:48
Show Gist options
  • Save weaverryan/c6136de72f3e20940b5fb61859c0d4dc to your computer and use it in GitHub Desktop.
Save weaverryan/c6136de72f3e20940b5fb61859c0d4dc to your computer and use it in GitHub Desktop.
fosU registration form
{# ... #}
{% block body %}
{{ form_start(form, {'method': 'post', 'action': path('fos_user_registration_register'), 'attr': {'class': 'fos_user_registration_register'}}) }}
{{ form_row(form.email, {
attr: { class: 'some-custom-class'}
}) }}
{{ form_row(form.username) }}
{{ form_row(form.plainPassword) }}
<div>
<input type="submit" value="{{ 'registration.submit'|trans }}" />
</div>
{{ form_end(form) }}
{% endblock %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment