Добро пожаловать на форум PHP программистов!
За последние 24 часа нас посетили 22555 программистов и 1575 роботов. Сейчас ищут 1744 программиста ...

HTML_QuickForm_Renderer_ArraySmarty::setRequiredTemplate()

Вернуться к: Template-based renderers

HTML_QuickForm_Renderer_ArraySmarty::setRequiredTemplate()

HTML_QuickForm_Renderer_ArraySmarty::setRequiredTemplate() – Sets the way required elements are rendered

Synopsis

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

void HTML_QuickForm_Renderer_ArraySmarty::setRequiredTemplate ( string $template )

You can use {$label} or {$html} placeholders to let the renderer know where where the element label or the element html are positionned according to the required tag. They will be replaced accordingly with the right value. You can use the full smarty syntax here, especially a custom modifier for I18N. For example: {if $required}<span style="color: red;">*</span>{/if}{$label|translate} will put a red star in front of the label if the element is required and translate the label.

Parameter

string $template

The required element template

Throws

throws no exceptions thrown

Note

This function can not be called statically.



Вернуться к: Template-based renderers

© 2024 «PHP.RU — Сообщество PHP-Программистов»
Главная | Форум | Реклама на сайте | Контакты VIP Сувениры
Разработка компании ODware