fix category page with controller

This commit is contained in:
Nicolas 2023-01-19 16:55:09 +01:00
parent d468d5fed0
commit 69ee3faa65
2 changed files with 13 additions and 13 deletions

View File

@ -7,22 +7,22 @@ final class CategoriesController
{
$A_array_recipes_Type_de_cuisson = array( //test
array(
"id" => "1",
"nom" => "Quaso",
"img" => "4.jpg",
"note" => "4.5"
"RECIPE_LINK" => "http://exemple",
"IMG_LINK" => "2.jpg",
"NAME" => "Croissant",
"NOTE" => "4.5"
),
array(
"id" => "1",
"nom" => "Quaso",
"img" => "4.jpg",
"note" => "4.5"
"RECIPE_LINK" => "http://exemple",
"IMG_LINK" => "2.jpg",
"NAME" => "Croissant",
"NOTE" => "4.5"
),
array(
"id" => "1",
"nom" => "Quaso",
"img" => "4.jpg",
"note" => "4.5"
"RECIPE_LINK" => "http://exemple",
"IMG_LINK" => "2.jpg",
"NAME" => "Croissant",
"NOTE" => "4.5"
)
);

View File

@ -6,7 +6,7 @@
<?php
foreach ($A_view as $categoryName => $recipes) {
echo '<li><section>
<h1><?$key?></h1>
<h1>'.$categoryName.'</h1>
<ul>';
foreach ($recipes as $recipe) {
echo '<li>';