template_dir = "../../lib/templates"; $smarty->compile_dir = "../../lib/templates_c"; $smarty->cache_dir = "../../lib/cache"; //テンプレートがsjisの場合変換 function pre01($buff, &$smarty) { return mb_convert_encoding($buff,"EUC-JP","SJIS"); } function post01($buff, &$smarty) { return mb_convert_encoding($buff,"SJIS","EUC-JP"); } $smarty->register_prefilter('pre01'); $smarty->register_postfilter('post01'); list($data,$links)=make_page_link($published); //変数アサイン $smarty->assign(data,$data); //テンプレート表示 $smarty->display("empty.tpl"); ?>