S
S
symnoob2022-03-17 16:32:05
symfony
symnoob, 2022-03-17 16:32:05

How to set the form's submit method?

A ready-made form object arrives in my controller. Is it possible somehow to change the form submission method from POST to the PATCH method before submitting it for rendering, without touching the twig?
$form->createView()

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis Derepko, 2022-03-17
@uDenX

https://symfony.com/doc/current/forms.html#changin...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question