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.