box-o-sand/PracticingPhp/web/html/wikipedia-tutorial/smarty.php

12 lines
215 B
PHP
Raw Normal View History

2011-01-01 18:51:50 +00:00
<?php
require_once("libs/Smarty.class.php");
2011-01-01 18:58:44 +00:00
$smarty = new Smarty();
$smarty->assign("title", "smarty!");
$smarty->assign("bgcolor", "#aef");
$smarty->template_dir = "templates";
$smarty->display("test.tpl");
2011-01-01 18:51:50 +00:00
?>