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/Database.php | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/src/App/Database.php b/src/App/Database.php index e96b35b..45ca5dc 100644 --- a/src/App/Database.php +++ b/src/App/Database.php @@ -9,7 +9,11 @@ public function __construct(private string $host, private string $name, private string $user, - private string $password) { } + private string $password) { + + echo "Created Database"; + + } public function getConnection(): PDO { $dns = "mysql:host={$this->host};dbname={$this->name};charset=utf8;port=3306"; return new PDO($dns, $this->user, $this->password, [ -- Gitblit v1.8.0