smarty - display和fetch的区别
include_once 'init_smarty.php';
$smarty->assign('title','标题');
$smarty->assign('content','内容');
$output = $smarty->fetch('index.html');
echo $output;
// $smarty->display('index.html');
?>
转载
2016-02-16 15:34:27 ·
914 阅读 ·
0 评论