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
|
$A_array_recipes_Type_de_cuisson = array( //test
|
||||||
array(
|
array(
|
||||||
"id" => "1",
|
"RECIPE_LINK" => "http://exemple",
|
||||||
"nom" => "Quaso",
|
"IMG_LINK" => "2.jpg",
|
||||||
"img" => "4.jpg",
|
"NAME" => "Croissant",
|
||||||
"note" => "4.5"
|
"NOTE" => "4.5"
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
"id" => "1",
|
"RECIPE_LINK" => "http://exemple",
|
||||||
"nom" => "Quaso",
|
"IMG_LINK" => "2.jpg",
|
||||||
"img" => "4.jpg",
|
"NAME" => "Croissant",
|
||||||
"note" => "4.5"
|
"NOTE" => "4.5"
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
"id" => "1",
|
"RECIPE_LINK" => "http://exemple",
|
||||||
"nom" => "Quaso",
|
"IMG_LINK" => "2.jpg",
|
||||||
"img" => "4.jpg",
|
"NAME" => "Croissant",
|
||||||
"note" => "4.5"
|
"NOTE" => "4.5"
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
<?php
|
<?php
|
||||||
foreach ($A_view as $categoryName => $recipes) {
|
foreach ($A_view as $categoryName => $recipes) {
|
||||||
echo '<li><section>
|
echo '<li><section>
|
||||||
<h1><?$key?></h1>
|
<h1>'.$categoryName.'</h1>
|
||||||
<ul>';
|
<ul>';
|
||||||
foreach ($recipes as $recipe) {
|
foreach ($recipes as $recipe) {
|
||||||
echo '<li>';
|
echo '<li>';
|
||||||
|
Loading…
Reference in New Issue
Block a user