XF 2.0 Add arrays together in templates?

Jaxel

Well-known member
I have a link as follows:
Code:
<a href="{{ link('ewr-torneo/events', $league, $params) }}">

I would like to add something to the $params in the template. Is such a thing possible? Something like:
Code:
<a href="{{ link('ewr-torneo/events', $league, $params+{'sort':'value'}) }}">
 
Strange, it works fine for me. I use it in pretty much the exact same way you are. I just double checked with a simpler case too, and I wind up with /index.php?foo=bar&test=value:
HTML:
<a href="{{ link('', '', {'foo': 'bar'} + {'test': 'value'}) }}">Test</a>
 
Back
Top Bottom