From 2bddb6faf9aeddf40602187c57c421da8ded5c3e Mon Sep 17 00:00:00 2001
From: filippo.bertilotti <filippobertilotti@gmail.com>
Date: Tue, 14 May 2024 12:06:32 +0200
Subject: [PATCH] inizializzazione Container e refactor code (parte 88)

---
 src/App/Controllers/home.php |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/App/Controllers/home.php b/src/App/Controllers/home.php
index 5985bca..e3cb998 100644
--- a/src/App/Controllers/home.php
+++ b/src/App/Controllers/home.php
@@ -1,7 +1,9 @@
 <?php
 namespace App\Controllers;
+use Framework\Viewer;
 class Home {
     public function index() {
-        require "views/home_index.php";
+        $viewer = new Viewer;
+        echo $viewer->render("Home/index.php");
     }
 }
\ No newline at end of file

--
Gitblit v1.8.0