|
{# app/Views/macros/forms.twig #}
|
|
{% macro form_open(action, attributes = '') %}
|
|
<form action="{{ action }}" method="post" {{ attributes|raw }}>
|
|
{# Выводим глобальную переменную csrf_token #}
|
|
{{ csrf_field()|raw }}
|
|
{% endmacro %}
|
|
|
|
{% macro form_close() %}
|
|
</form>
|
|
{% endmacro %} |