category_list implemented
This commit is contained in:
parent
5f8bfa4b11
commit
21f40c7ee5
19
Views/common/category_list.php
Normal file
19
Views/common/category_list.php
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
<?php
|
||||||
|
$allCategory array(
|
||||||
|
"Type de cuisson" => "type_de_cuisson",
|
||||||
|
"Temps de préparation" => "temps_de_preparation",
|
||||||
|
"Difficulté" => "difficulte",
|
||||||
|
"Végan" => "vegan",
|
||||||
|
"Sans gluten" => "sans_gluten",
|
||||||
|
"Sans lactose" => "sans_lactose");
|
||||||
|
?>
|
||||||
|
|
||||||
|
<aside>
|
||||||
|
<ul>
|
||||||
|
<li><h3>Catégories :</h3></li>
|
||||||
|
<?php
|
||||||
|
foreach($allCategory as $category => $category_path){
|
||||||
|
echo('<li><a href="/category/' . $category_path . '">'. $category . '</a></li>')
|
||||||
|
}?>
|
||||||
|
</ul>
|
||||||
|
</aside>
|
||||||
@ -8,7 +8,6 @@ $array_header = array(
|
|||||||
);
|
);
|
||||||
?>
|
?>
|
||||||
<header>
|
<header>
|
||||||
|
|
||||||
<nav>
|
<nav>
|
||||||
<ul>
|
<ul>
|
||||||
<?php
|
<?php
|
||||||
@ -18,5 +17,4 @@ $array_header = array(
|
|||||||
?>
|
?>
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
</header>
|
</header>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user