{literal} <script language="javascript"> </script> {/literal}
[$hoge|escape|lnl2br}
<?php require_once('Smarty.php'); // smarty $smarty = new Smarty(); $smarty->template_dir = "./templates/"; $smarty->compile_dir = "./templates_c/"; $smarty->config_dir = "./configs/"; $smarty->cache_dir = "./cache/"; $smarty->caching = true; $smarty->cache_lifetime = 600; // 10分 $smarty->compile_check = false; if (!$smarty->is_cached("template.tpl")) { } $smarty->display("template.tpl"); ?>
<?php require_once('Smarty.php'); // smarty $smarty = new Smarty(); $smarty->template_dir = "./templates/"; $smarty->compile_dir = "./templates_c/"; $smarty->config_dir = "./configs/"; $smarty->cache_dir = "./cache/"; $smarty->caching = true; $smarty->cache_lifetime = 600; // 10分 $smarty->compile_check = false; userid = session_id(); } ?>
{foreach from=$items item=i name=items} {$smarty.foreach.items.index} {/foreach}