From 26e97c2916d6df372ffcb8a7cb90ff0a4c5acaf7 Mon Sep 17 00:00:00 2001 From: Thomas Rubini <74205383+ThomasRubini@users.noreply.github.com> Date: Thu, 12 Jan 2023 15:13:21 +0100 Subject: [PATCH] fixed forgotten fonction --- Controllers/HelloworldController.php | 2 +- Models/Helloworld.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Controllers/HelloworldController.php b/Controllers/HelloworldController.php index 448a2c8..4215141 100644 --- a/Controllers/HelloworldController.php +++ b/Controllers/HelloworldController.php @@ -5,7 +5,7 @@ final class HelloworldController public function defaultAction() { $O_helloworld = new Helloworld(); - View::show('helloworld/view', array('helloworld' => $O_helloworld->donneMessage())); + View::show('helloworld/view', array('helloworld' => $O_helloworld->getMessage())); } diff --git a/Models/Helloworld.php b/Models/Helloworld.php index 7dadd63..fbfeb5b 100644 --- a/Models/Helloworld.php +++ b/Models/Helloworld.php @@ -4,7 +4,7 @@ final class Helloworld { private $_S_message = "Hello World"; - public function donneMessage() + public function getMessage() { return $this->_S_message ; }