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

HTML_QuickForm_Renderer_Default::setElementTemplate()

Вернуться к: Basic renderers

HTML_QuickForm_Renderer_Default::setElementTemplate()

HTML_QuickForm_Renderer_Default::setElementTemplate() – Sets element template

Synopsis

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

void HTML_QuickForm_Renderer_Default::setElementTemplate ( string $html , string $element = null )

Sets element template. When called with one parameter, it sets the default element template, when called with two parameters it sets template for the concrete element. The template should include at least the {element} placeholder.

The default element template is


"\n\t<tr>\n\t\t<td align=\"right\" valign=\"top\"><!-- BEGIN required --><span style=\"color: #ff0000\">*</span><!-- END required --><b>{label}</b></td>\n\t\t<td valign=\"top\" align=\"left\"><!-- BEGIN error --><span style=\"color: #ff0000\">{error}</span><br /><!-- END error -->\t{element}</td>\n\t</tr>"

Parameter

string $html

The HTML surrounding an element

string $element

(optional) Name of the element to apply template for

Throws

throws no exceptions thrown

Note

This function can not be called statically.



Вернуться к: Basic renderers

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