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 | 27 ++++++++------------------- 1 files changed, 8 insertions(+), 19 deletions(-) diff --git a/htdocs/index.php b/htdocs/index.php index 7cc1ad4..fb9bc6c 100644 --- a/htdocs/index.php +++ b/htdocs/index.php @@ -1,23 +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('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"; - - - - - - + $smarty->display('index.tpl'); + echo 'index'; ?> \ No newline at end of file -- Gitblit v1.8.0