罪と罰++二律背反

<html>
<head>
<title>{$title}</title>
</head>
<body>
本文:{$honbun} 
</body>
</html>
require 'Smarty.class.php';
$tpl = new Smarty;

$title = "てすと";
$tpl->assign("title",$title);
$tpl->display("test.tpl");
  • function filter_pre($buff, &$tpl){
    	return mb_convert_encoding($buff,"EUC-JP","SJIS");
    }
    function filter_post($buff, &$tpl){
    	return mb_convert_encoding($buff,"SJIS","EUC-JP");
    }
    
    require 'Smarty.class.php';
    $tpl = new Smarty;
    
    $tpl->register_prefilter('filter_pre');
    $tpl->register_postfilter('filter_post');

トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2012-06-08 (金) 00:24:26 (4340d)