How to set up Smarty on Koding?

61 Views Asked by At

im new to koding, and I want to use Smarty, and just want to know some details how to set up smarty om koding? I have following code in my index.php, but it doesn't work.

<?php
require_once './Smarty/libs/Smarty.class.php';
$smarty = new Smarty();
$smarty->setCompileDir('./templates_c');
$smarty->setTemplateDir('./templates');
$smarty->display('index.tpl');
?>

Any idea?

0

There are 0 best solutions below