と がclass categroies
ありclass Products
ます。
私のリポジトリには機能があります
getProducts($categoryid,$location)
このような小枝テンプレートをループする必要があります
{% for category in categories %}
--{{ category.name }}--
{% for product in getProducts(category.id,location) %}
--{{ product.name }}--
{% endfor %}
{% endfor %}
またはそのためのより良い方法はありますか