diff --git a/src/Controller/CategoryController.php b/src/Controller/CategoryController.php index e600fd8..7f5669d 100644 --- a/src/Controller/CategoryController.php +++ b/src/Controller/CategoryController.php @@ -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)