fixed typo + changed placeholder name
This commit is contained in:
parent
78d1704d6e
commit
9cf82497a6
@ -12,11 +12,11 @@ final class ApprModel {
|
|||||||
");
|
");
|
||||||
$stmt->bindParam("recipe_id", $I_recipe_id);
|
$stmt->bindParam("recipe_id", $I_recipe_id);
|
||||||
$stmt->execute();
|
$stmt->execute();
|
||||||
|
|
||||||
$rows = $stmt->fetchAll();
|
$rows = $stmt->fetchAll();
|
||||||
|
|
||||||
foreach($rows as &$row) {
|
foreach($rows as &$row) {
|
||||||
$row["AUTHOR_IMG_LINK"] = "/static/img/user.jpg";
|
$row["AUTHOR_IMG_LINK"] = "/static/img/users/1.jpg";
|
||||||
}
|
}
|
||||||
|
|
||||||
return $rows;
|
return $rows;
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
<?php
|
<?php
|
||||||
foreach ($A_view["APPRS"] as $A_appr){
|
foreach ($A_view["APPRS"] as $A_appr){
|
||||||
$A_appr["SHOW_REMOVE_BUTTON"] = $B_view["ADMIN"];
|
$A_appr["SHOW_REMOVE_BUTTON"] = $A_view["ADMIN"];
|
||||||
View::show("appreciations/appreciation", $A_appr);
|
View::show("appreciations/appreciation", $A_appr);
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
<main>
|
<main>
|
||||||
|
|
||||||
<img src="<?= $A_view["IMAGE_LINK"] ?>" alt="Image d'illustration de la recette">
|
<img src="<?= $A_view["IMG_LINK"] ?>" alt="Image d'illustration de la recette">
|
||||||
|
|
||||||
<section class="infosRecette">
|
<section class="infosRecette">
|
||||||
<header>
|
<header>
|
||||||
@ -39,7 +39,7 @@
|
|||||||
"appreciations/view",
|
"appreciations/view",
|
||||||
array(
|
array(
|
||||||
"APPRS" => $A_view["APPRS"],
|
"APPRS" => $A_view["APPRS"],
|
||||||
"ADMIN" => $A_view["ADMIN"]
|
"ADMIN" => $A_view["ADMIN"]
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
?>
|
?>
|
||||||
|
Loading…
Reference in New Issue
Block a user