First contact with the full-stack PHP framework. The forms are output from the back end, which is not acceptable. In that case, how should the front-end staff write the front end?
Reply content:
First contact with the full-stack PHP framework. The forms are output from the back end, which is not acceptable. In that case, how should the front-end staff write the front end?
You can write your own form and match the framework's requirements.
Symfony Framework also provides a lot of output "fragment" of the template function, such as the form called the name of the control, you can use {{Form_widget (form.name)}} to output the corresponding ""As far as layout and so on your custom code to follow your original habit.
The Form component is very flexible, the back end only specifies the type of input box, output support front page in, as to the front-end staff how style, and the back end does not have a dime relationship.
{{ form(form, {'attr': {'novalidate': 'novalidate'}}) }}