From 24afac65b676af0db28caea9801425014740978d Mon Sep 17 00:00:00 2001 From: Capelier-Marla Date: Fri, 20 Jan 2023 10:33:39 +0100 Subject: [PATCH] moved appreciations array to recipe view before calling appreciations view --- Views/appreciations/view.php | 38 ++---------------------------------- Views/recipe/view.php | 32 +++++++++++++++++++++++++++++- 2 files changed, 33 insertions(+), 37 deletions(-) diff --git a/Views/appreciations/view.php b/Views/appreciations/view.php index 4166645..c06ea5b 100644 --- a/Views/appreciations/view.php +++ b/Views/appreciations/view.php @@ -1,37 +1,3 @@ - "test", - "PROFILE_IMG" => "1.jpg", - "COMMENT" => "j'me présente, je m'appelle henry", - "NOTE" => "2", - "DATE" => DATE("2020-07-08") - ), - array( - "NAME" => "test", - "PROFILE_IMG" => "1.jpg", - "COMMENT" => "j'me présente, je m'appelle henry", - "NOTE" => "2", - "DATE" => DATE("2020-07-08") - ), - array( - "NAME" => "test", - "PROFILE_IMG" => "1.jpg", - "COMMENT" => "j'me présente, je m'appelle henry", - "NOTE" => "2", - "DATE" => DATE("2020-07-08") - ), - array( - "NAME" => "AAAA", - "PROFILE_IMG" => "/static/img/recipes/1.jpg", - "COMMENT" => "j'me présente, je m'appelle henry", - "NOTE" => "2", - "DATE" => DATE("2020-07-08") - ), -); -?> - -

Appréciations:

@@ -50,8 +16,8 @@ $appreciations = array(
-
\ No newline at end of file + diff --git a/Views/recipe/view.php b/Views/recipe/view.php index cae71e2..62d305b 100644 --- a/Views/recipe/view.php +++ b/Views/recipe/view.php @@ -35,7 +35,37 @@

By

"test", + "PROFILE_IMG" => "/static/img/users/1.jpg", + "COMMENT" => "j'me présente, je m'appelle henry", + "NOTE" => "2", + "DATE" => DATE("2020-07-08") + ), + array( + "NAME" => "test", + "PROFILE_IMG" => "/static/img/users/1.jpg", + "COMMENT" => "j'me présente, je m'appelle henry", + "NOTE" => "2", + "DATE" => DATE("2020-07-08") + ), + array( + "NAME" => "test", + "PROFILE_IMG" => "/static/img/users/1.jpg", + "COMMENT" => "j'me présente, je m'appelle henry", + "NOTE" => "2", + "DATE" => DATE("2020-07-08") + ), + array( + "NAME" => "AAAA", + "PROFILE_IMG" => "/static/img/users/1.jpg", + "COMMENT" => "j'me présente, je m'appelle henry", + "NOTE" => "2", + "DATE" => DATE("2020-07-08") + ), + ); + View::show("appreciations/view", $appreciations)//need to be linked with recipe? ?>