<?php

require_once('Smarty.class.php');

$smarty = new Smarty();

$smarty->template_dir = 'd:/smartysample/if/templates/';
$smarty->compile_dir  = 'd:/smartysample/if/templates_c/';
$smarty->config_dir   = 'd:/smartysample/if/configs/';
$smarty->cache_dir    = 'd:/smartysample/if/cache/';

$smarty->assign('title', '条件分岐のテスト');
$smarty->assign('num1', 8);
$smarty->assign('num2', 15);

$smarty->display('sample2-1.tpl');

?>