I'm following the docs ( https://docs.phalcon.io/en/latest/reference/volt.html#macros ) to create a macro, but I just get a "undefined function" exception.
The macro (templates/admin.volt
):
{%- macro admin() %}
<h3>WORK DAMMIT</h3>
{%- endmacro %}
Then, in the template:
{% include 'templates/admin.volt' %}
{{ admin() }}