<?php
require_once './class/MySmarty.class.php';  // Smarty classを読込む

$Smarty = new MySmarty();  // Smarty classの生成

// Templateに定義したキーワードへ値に割り付ける 
$Smarty->assign('title', '{if}文を使用した表示');
// 指定したテンプレートを展開 
$Smarty->display('if.tpl');
?>
