diff --git a/Controllers/CategoriesController.php b/Controllers/CategoriesController.php new file mode 100644 index 0000000..4731be8 --- /dev/null +++ b/Controllers/CategoriesController.php @@ -0,0 +1,41 @@ + "http://exemple", + "IMG_LINK" => "2.jpg", + "NAME" => "Croissant", + "NOTE" => "4.5" + ), + array( + "RECIPE_LINK" => "http://exemple", + "IMG_LINK" => "2.jpg", + "NAME" => "Croissant", + "NOTE" => "4.5" + ), + array( + "RECIPE_LINK" => "http://exemple", + "IMG_LINK" => "2.jpg", + "NAME" => "Croissant", + "NOTE" => "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, + "Difficulté" => $A_array_recipes_Type_de_cuisson, + "Végan" => $A_array_recipes_Type_de_cuisson, + "Sans gluten" => $A_array_recipes_Type_de_cuisson, + "Sans lactose" => $A_array_recipes_Type_de_cuisson + ); + + View::show("category/view", $A_array_categories); + } + +} diff --git a/Views/category/view.php b/Views/category/view.php new file mode 100644 index 0000000..4575649 --- /dev/null +++ b/Views/category/view.php @@ -0,0 +1,21 @@ + + + diff --git a/Views/common/recipe.php b/Views/common/recipe.php index 1cabff5..7b46cc1 100644 --- a/Views/common/recipe.php +++ b/Views/common/recipe.php @@ -1,5 +1,5 @@ -"> - " alt=""> +"> + " alt="">