Scriptindex.de

[ Menü ]

Home
News
Scripts
Neuzugänge
Suchen
Bücher
Manuals

[ Inhalt ]

Script eintragen
Tutorial eintragen
Newsletter
Umfragen
Link zu uns
Werbung bei uns
Kontakt
Impressum

[ Statistik ]

Hits gesamt: 5201564
Hits Heute: 993
max. Hits (10.07.07): 6964
User Online: 26
Scripts: 2828

[ Partner ]

CodeBase
I.S.U.M.
LUG Bayreuth
PEAR NEWS
PHP Classes

[ Facebook ]

[ Eigene Domain? ]

[ Buchtipp ]

Workshop Perl
Workshop Perl

Manuals > PEAR > HTML_QuickForm_Renderer_ArraySmarty::setErrorTemplate()

HTML_QuickForm_Renderer_ArraySmarty::setErrorTemplate()

HTML_QuickForm_Renderer_ArraySmarty::setErrorTemplate() -- Sets the way elements with validation errors are rendered

Description

You can use or placeholders to let the renderer know where where the element label or the element html are positionned according to the error message. They will be replaced accordingly with the right value. The error message will replace the placeholder. For example: {if $error}<span style="color: red;"></span> will put the error message in red on top of the element html.

If you want all error messages to be output in the main error block, use the part of the rendered array that collects all raw error messages.

If you want to place all error messages manually, do not specify nor .

Groups can have special layouts. With this kind of groups, you have to place the formated error message manually. In this case, use where you want the formated error message to appear in the form.

Parameter

string $template

The element error template

Throws

throws no exceptions thrown

Note

This function can not be called statically.


Copyright 1998 - 2009 by I.S.U.M.