From 3f3e8c04d559f06de9e5452156d18c40919591a7 Mon Sep 17 00:00:00 2001 From: filippo.bertilotti <filippobertilotti@gmail.com> Date: Tue, 11 Jun 2024 10:46:48 +0200 Subject: [PATCH] fix per rispecchiare nome colonna e nome table del database --- src/App/Controllers/fiat.php | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/App/Controllers/fiat.php b/src/App/Controllers/fiat.php index 4163ad2..b107467 100644 --- a/src/App/Controllers/fiat.php +++ b/src/App/Controllers/fiat.php @@ -1,11 +1,11 @@ <?php namespace App\Controllers; -use App\Models\FiatModel; +use App\Models\Contact; use Framework\Controller; class Fiat extends Controller { - public function __construct(private FiatModel $model) + public function __construct(private Contact $model) { } @@ -33,9 +33,9 @@ if($_SERVER['REQUEST_METHOD'] === 'POST') { $data = [ "email" => $this->request->post["email"], - "number" => $this->request->post["number"] + "telefono" => $this->request->post["telefono"] ]; - + $this->model->insert($data); } -- Gitblit v1.8.0