smartyを使っています。
smartyで、テンプレートの出力結果をhtmlファイルにしたいのですが、どうすればいいのでしょうか?

$fp = fopen("html.html", "w");
fputs($fp, $smarty->display("test.html"));
fclose($fp);

実行後に$smarty->displayでの結果はブラウザに表示されるのですが、html.htmlはカラッポです。