简体   繁体   中英

Adding id and attributes to Form element, Volt engine and Phalcon 3

I was trying to add an id to form element in Phalcon using volt syntax. But never found a solution for it.

Here is how I render the form:

{{ form("admin/saveSettings", "method": "post") }}

It is simple as that:

{{ form("admin/saveSettings", "method": "post", "id": "form-id", "class": "css-class") }}

You can add more attributes by separating them with commas.

More examples of Tag Helpers can be found in the docs .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM