<?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('engine', 'yahoo'); $smarty->display('sample1-1.tpl'); ?>