From ab153bc311e3869036d30cd73e819598eaad8b24 Mon Sep 17 00:00:00 2001 From: "nisch.codes" Date: Tue, 22 Jul 2025 23:22:33 +0200 Subject: [PATCH] Initial Code commit --- app/Model/HomeModel.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/app/Model/HomeModel.php b/app/Model/HomeModel.php index 395d722..330a15c 100644 --- a/app/Model/HomeModel.php +++ b/app/Model/HomeModel.php @@ -23,6 +23,8 @@ use Nischcodes\Shiftcalc\MVC\BaseModel; class HomeModel implements BaseModel { + protected $repository = []; + // implement the init function public function init() { echo "HomeModel init"; @@ -30,8 +32,11 @@ class HomeModel implements BaseModel { // implement the getAll function public function getAll() { - return []; + return $this->repository; } - public function get($index){} + // implement the get function + public function get($index){ + return $this->repository[$index]; + } } \ No newline at end of file