previousHTML_QuickForm_Renderer_ArraySmarty::
setErrorTemplate()
(Previous)
(Next) HTML_QuickForm_Renderer_ITDynamicnext

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

HTML_QuickForm_Renderer_ArraySmarty::setRequiredTemplate()

HTML_QuickForm_Renderer_ArraySmarty::setRequiredTemplate() – 必須要素をレンダリングする方法を設定する

Synopsis

require_once 'HTML/QuickForm/Renderer/ArraySmarty.php';

void HTML_QuickForm_Renderer_ArraySmarty::setRequiredTemplate ( string $template )

Description

プレースホルダ {$label} あるいは {$html} を使用し、 要素のラベルや HTML が必須要素のどの部分に配置されるのかを指定することができます。 これらのプレースホルダは、正しい値に適切に置き換えられます。 ここでは、smarty のすべての構文、特に I18N 用のカスタム修正子などを使用することができます。 例えば、{if $required}<span style="color: red;">*</span>{/if}{$label|translate} は、必須要素のラベルの先頭に赤い星印をつけ、ラベルを翻訳します。

Parameter

string $template

必須要素のテンプレート。

Throws

例外はスローされません。

Note

This function can not be called statically.

previousHTML_QuickForm_Renderer_ArraySmarty::
setErrorTemplate()
(Previous)
(Next) HTML_QuickForm_Renderer_ITDynamicnext

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.