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

変数の設定

これは最も簡単な作業です。単に、setVar() に変数名とその値を指定するだけです。オプションの三番目のパラメータに boolean 値を指定すると、新しい値を既存の値に追記するかどうかが設定できます (デフォルトは false です)。

変数の設定

<?php
$t
->setVar('AUTHOR_NAME''Christian Weiske');
?>

これは、変数がブロック内で定義されているか否かにかかわらず、 テンプレート内のすべての変数に影響を及ぼします。

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.