From 24112e1d997cf519f1679e0b0e995a9663f18961 Mon Sep 17 00:00:00 2001
From: filippo.bertilotti <filippobertilotti@gmail.com>
Date: Wed, 24 Apr 2024 12:54:35 +0200
Subject: [PATCH] implementazione connessione al database mysql (da risolvere problema exception mysql

---
 htdocs/index.php |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/htdocs/index.php b/htdocs/index.php
index b2fc1cd..fb9bc6c 100644
--- a/htdocs/index.php
+++ b/htdocs/index.php
@@ -1,3 +1,12 @@
 <?php
-    echo "ciao sono una stringa";
+    require '../vendor/autoload.php';
+    use Smarty\Smarty;
+    $smarty = new Smarty();
+
+    $smarty->setTemplateDir('../ihtml');
+    $smarty->setCompileDir('../compile');
+    #$smarty->setCacheDir('../ihtml/smarty/cache');
+
+    $smarty->display('index.tpl');
+    echo 'index';
 ?>
\ No newline at end of file

--
Gitblit v1.8.0