$smarty = new Smarty();

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

$smarty->assign('title', '修飾子のテスト');
Smarty is a template engine for PHP. More specifically, it facilitates 
a managable way to separate application logic and content from its 
presentation. This is best described in a situation where the application 
programmer and the template designer play different roles, or in most 
cases are not the same person. 
$smarty->assign('msg', $msg);