A
A
andyceo2014-09-11 23:36:25
symfony
andyceo, 2014-09-11 23:36:25

What should be the structure of a simple form landing site in Symfony 2.5.x?

Hello! I have a question about working with forms in Symfony.
My task is to make a site from one page, on which there will be a form with fields Name and Phone. The user submits the form, it is sent to the server via Ajax, and the data is written to a file and a letter is sent to the customer, and the server replies via Ajax that "your request has been sent. Send another one?"
With what help do forms in Symfony2? What should be the structure of the bundle? What should it consist of? Where to send the form action?
Please set the direction where to dig. No entities (Doctrine) are used, everything should be very simple, understandable and reliable.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2014-09-12
@andyceo

Here's how to make forms in Symfony2

symphony/forms.
symfony.com/doc/current/book/forms.html
You may not have a Doctrine entity, but you should still have a model.
In general, understand Symfony or take something simpler for such a simple task.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question