Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {% set cols = {} %}
- {% for name, id in categories %}
- {% set cols = cols|merge({ ('' ~ name) : [id] }) %}
- {% endfor %}
- {{dump(cols)}} // This line prints a two dimensional array correctly!
- {{ knp_pagination_filter(articles, cols, ['p.category_id']) }}
Add Comment
Please, Sign In to add comment