我是koding的新手,我想使用Smarty,只是想知道如何设置smarty om koding的一些细节? 我在index.php中有以下代码,但它不起作用。
<?php
require_once './Smarty/libs/Smarty.class.php';
$smarty = new Smarty();
$smarty->setCompileDir('./templates_c');
$smarty->setTemplateDir('./templates');
$smarty->display('index.tpl');
?>
有什么想法吗?