• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

How can I set an array ($threads) with xen:set

Marcus

Well-known member
#1
I have an existing array $newThreads and want to push it to an included template:

PHP:
        <xen:include template="addon_template" >
            <xen:set var="$threads">{$newThreads}</xen:set>
        </xen:include>
In the addon_template {xen:helper dump, $threads} returns
PHP:
string(0) ""