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 | 19 ++++++++----------- 1 files changed, 8 insertions(+), 11 deletions(-) diff --git a/htdocs/index.php b/htdocs/index.php index 7e49652..fb9bc6c 100644 --- a/htdocs/index.php +++ b/htdocs/index.php @@ -1,15 +1,12 @@ <?php + require '../vendor/autoload.php'; + use Smarty\Smarty; + $smarty = new Smarty(); -require '../vendor/autoload.php'; -use Smarty\Smarty; -$smarty = new Smarty(); + $smarty->setTemplateDir('../ihtml'); + $smarty->setCompileDir('../compile'); + #$smarty->setCacheDir('../ihtml/smarty/cache'); -$smarty->setTemplateDir('../ihtml'); -$smarty->setCompileDir('../compile'); -#$smarty->setCacheDir('../ihtml/smarty/cache'); - -$smarty->display('header.tpl'); -echo 'index'; - - + $smarty->display('index.tpl'); + echo 'index'; ?> \ No newline at end of file -- Gitblit v1.8.0