{% extends 'base.html.twig' %} {% block title %}Magasin index{% endblock %} {% block body %}

STOCK

{% set uniqueTags = [] %} {% for magasin in magasin %} {% if magasin.tag not in uniqueTags %}

{{ magasin.tag }}

{% set uniqueTags = uniqueTags|merge([magasin.tag]) %} {% endif %} {% endfor %} Ajouter produit
{% endblock %}