0
I have a form made in twing and I want to pass the values of this form to my database and for that I have to send to the controller, no?
0
I have a form made in twing and I want to pass the values of this form to my database and for that I have to send to the controller, no?
0
Symfony has a "particular" way of working with forms.
Basically it is built in the Controller and then needs to be started in Twig.
Follow one step at a time:
1° Create an entity to represent the fields of your form. If you already have an object to persist this data just instantiate it.
2° Create the form with the fields you want to return.
3° Start and manipulate the form as you wish on Twig.
In the documentation there is a very clear example of how you can do this:
Browser other questions tagged php web-application symfony-2
You are not signed in. Login or sign up in order to post.