XF 2.0 Is they a way to paste custom var from custom_var_template to templates?

KiF

Active member
Hello.

Is they a way to include and use a var $temp_array from custom_var_template to templates?

custom_var_template
HTML:
<xf:set var="$temp_array" value="{{ {
    '1': '1',
    '2': '2',
    '99': '99'
} }}" />


I tried
HTML:
<xf:include template="custom_var_template" />
{{ dump($temp_array) }}

but had not needed result.
 
Back
Top Bottom