-
Notifications
You must be signed in to change notification settings - Fork 3
Combining serverside form render with sv form
Kevin Driessen edited this page Apr 6, 2021
·
1 revision
SymfonyVuetified offers the <sv-form>
component as an additional way to render your form client-side. That doesn't mean you can no longer use twig's {{ form(form) }}
.
You could use {{ form(form) }}
for one form and <sv-form>
for a different form, but you can even combine these two for a single form:
{{ form_start(form) }}
{{ form_row(form.name) }}
<sv-form-widget :form="{{ form.email | vue('email_form_field') }}"></sv-form-widget>
{{ form_end(form, {'render_rest': false}) }}