From 766451d7a969ca8b6b80d7da206ef76e3f376925 Mon Sep 17 00:00:00 2001 From: filippo.bertilotti <filippobertilotti@gmail.com> Date: Tue, 21 May 2024 10:15:31 +0200 Subject: [PATCH] creazione di una base Model da applicare a tutti i modelli (parte 120) --- 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