From 7baa142488879722eaffe263ddc064072f4df973 Mon Sep 17 00:00:00 2001
From: filippo.bertilotti <filippobertilotti@gmail.com>
Date: Tue, 14 May 2024 10:23:53 +0200
Subject: [PATCH] autodichiarazione delle dipendenze (auto wiring) (parte 83)

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

diff --git a/src/App/Controllers/home.php b/src/App/Controllers/home.php
index b086e7c..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