previousシンプルな例 (Previous) (Next) ブロックの定義next

View this page in Last updated: Sun, 21 Jun 2009
English | Brazilian Portuguese | Chinese | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Turkish

ファイルの読み込み

テンプレートファイルの場所は、定義されている ルートディレクトリからの相対パスとなります。 ルートディレクトリを指定するには、コンストラクタ (の最初のパラメータ、デフォルトは .) あるいは setRoot() を使用します。

ファイルは、その ハンドル 名で参照します。 そこで、setFile() をコールする際には 最初のパラメータにハンドル名、二番目のパラメータにファイル名を指定することになります。 より手軽に使用するために、 ハンドルとファイル名の配列をこのメソッドに渡すこともできます。

テンプレートファイルの読み込み

<?php
$t 
=& new HTML_Template_PHPLIB(dirname(__FILE__), 'keep');
$t->setFile('authors''authors.tpl');
?>
previousシンプルな例 (Previous) (Next) ブロックの定義next

Download Documentation Last updated: Sun, 21 Jun 2009
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
There are no user contributed notes for this page.