Are the Symfony forms output at the back end?

Source: Internet
Author: User
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'}}) }}
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.