| | |
| | | <?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'; |
| | | ?> |