fix category page with controller
This commit is contained in:
parent
d468d5fed0
commit
69ee3faa65
@ -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"
|
||||
)
|
||||
);
|
||||
|
||||
|
@ -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>';
|
||||
|
Loading…
Reference in New Issue
Block a user