From f8e81d6136bc75fb05c84101ac50087831bbeb25 Mon Sep 17 00:00:00 2001 From: Capelier-Marla Date: Fri, 20 Jan 2023 09:50:54 +0100 Subject: [PATCH 1/5] renamed all categories in category --- .../{CategoriesController.php => CategoryController.php} | 6 +++--- Views/common/category_list.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) rename Controllers/{CategoriesController.php => CategoryController.php} (96%) diff --git a/Controllers/CategoriesController.php b/Controllers/CategoryController.php similarity index 96% rename from Controllers/CategoriesController.php rename to Controllers/CategoryController.php index 4731be8..491fe93 100644 --- a/Controllers/CategoriesController.php +++ b/Controllers/CategoryController.php @@ -1,6 +1,6 @@ "4.5" ) ); - + $A_array_categories = array( "Type de cuisson" => $A_array_recipes_Type_de_cuisson, "Temps de préparation" => $A_array_recipes_Type_de_cuisson, @@ -37,5 +37,5 @@ final class CategoriesController View::show("category/view", $A_array_categories); } - + } diff --git a/Views/common/category_list.php b/Views/common/category_list.php index 801551d..ccd16f7 100644 --- a/Views/common/category_list.php +++ b/Views/common/category_list.php @@ -13,7 +13,7 @@ $allCategory = array(
  • Catégories :

  • $category_path) { - echo '
  • '. $category . '
  • '; + echo '
  • '. $category . '
  • '; }?> From 95f86e77a443feca7d6f407b6a91c48be2bfc1b3 Mon Sep 17 00:00:00 2001 From: Capelier-Marla Date: Fri, 20 Jan 2023 10:04:14 +0100 Subject: [PATCH 2/5] added id for each category to go directly to the section wanted --- Views/category/view.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Views/category/view.php b/Views/category/view.php index 4575649..20c64de 100644 --- a/Views/category/view.php +++ b/Views/category/view.php @@ -1,11 +1,18 @@ "type_de_cuisson", + "Temps de préparation" => "temps_de_preparation", + "Difficulté" => "difficulte", + "Végan" => "vegan", + "Sans gluten" => "sans_gluten", + "Sans lactose" => "sans_lactose"); ?>