From 5cc38b583e04398004e33bd09447c91cb3c618cb Mon Sep 17 00:00:00 2001 From: filippo.bertilotti <filippobertilotti@gmail.com> Date: Wed, 08 May 2024 09:46:25 +0200 Subject: [PATCH] aggiornamento codice: implementazione comando "use" e refactor --- src/App/Controllers/products.php | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/App/Controllers/products.php b/src/App/Controllers/products.php index 68c4516..ed3769b 100644 --- a/src/App/Controllers/products.php +++ b/src/App/Controllers/products.php @@ -1,9 +1,9 @@ <?php namespace App\Controllers; +use App\Models\Product; class Products { public function index() { - require "src/models/product.php"; - + $model = new Product; $products = $model->getData(); -- Gitblit v1.8.0