From f0fc431013f7270e317f8ab9c03166221575c3a6 Mon Sep 17 00:00:00 2001
From: filippo.bertilotti <filippobertilotti@gmail.com>
Date: Mon, 22 Apr 2024 11:00:56 +0200
Subject: [PATCH] configurazione di smarty e creazione template di prova

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

diff --git a/htdocs/index.php b/htdocs/index.php
index b2fc1cd..7cc1ad4 100644
--- a/htdocs/index.php
+++ b/htdocs/index.php
@@ -1,3 +1,23 @@
 <?php
-    echo "ciao sono una stringa";
+
+require '../vendor/autoload.php';
+use Smarty\Smarty;
+$smarty = new Smarty();
+
+$smarty->setTemplateDir('files_comuni/smarty/templates');
+$smarty->setConfigDir('files_comuni/smarty/configs');
+$smarty->setCompileDir('files_comuni/smarty/templates_c');
+$smarty->setCacheDir('files_comuni/smarty/cache');
+$smarty->testInstall();
+
+$smarty->assign('name', 'Filippo');
+$smarty->display('prova.tpl');
+
+echo "ciao sono una stringa";
+
+
+
+
+
+
 ?>
\ No newline at end of file

--
Gitblit v1.8.0