doing stuff with smarty
This commit is contained in:
@@ -2,4 +2,10 @@
|
||||
|
||||
require_once("libs/Smarty.class.php");
|
||||
|
||||
$smarty = new Smarty();
|
||||
$smarty->assign("title", "smarty!");
|
||||
$smarty->assign("bgcolor", "#aef");
|
||||
$smarty->template_dir = "templates";
|
||||
$smarty->display("test.tpl");
|
||||
|
||||
?>
|
||||
|
Reference in New Issue
Block a user