作成日:2006/08/07
4D.3.2 メソッド/テンプレート
| メソッド | 説明 |
|---|---|
display
void display ( string template [,string cache_id [,string compile_id]]) |
templateで指定されたテンプレートファイルに変数を結合し、HTTP出力します。 キャッシュIDを渡す事ができますが、 詳細はSmartyのマニュアルを参照して下さい。 コンパイルIDについてはメンバ変数 $compile_id を参照して下さい。 |
fetch
string fetch ( string template [,string cache_id [,string compile_id]]) |
templateで指定されたテンプレートファイルに変数を結合し、その出力を返します。 他は、display()メソッドと同じです。 |
template_exists
bool template_exists ( string template ) |
指定したtemplate が存在するか否かをチェックします。 |
clear_compiled_tpl
void clear_compiled_tpl ([string tpl_file [,string compile_id [,int exp_time]]]) |
指定したテンプレートのコンパイルファイルを破棄します。 この関数は上級ユーザ向けです。 詳細はSmartyのマニュアルを参照して下さい。 |
※詳細はSmartyの公式マニュアルを参照して下さい。
