Star working on category tree

This commit is contained in:
2026-01-24 08:42:16 +01:00
committed by krzysiej
parent f3169bcb32
commit 1e4815d47a

View File

@@ -31,7 +31,7 @@ final class CategoryController extends BaseController
$categoriesTree = $this->addToTree($product->categories, $categoriesTree);
}
return $this->render('productList.html.twig', ['products' => $products, 'listType' => 'category_' . $category]);
return $this->render('productList.html.twig', ['products' => $products, 'listType' => 'category_' . $category, 'categoryTree' => $categoriesTree]);
}
private function addToTree(array $categories, mixed $categoriesTree)