Manuel Pear

HTML_QuickForm_Renderer_ObjectFlexy::setLabelTemplate()

HTML_QuickForm_Renderer_ObjectFlexy::setLabelTemplate() -- Set the filename of the template to render html elements.

Synopsis

  1. <?php
  2. require_once 'HTML/QuickForm/Renderer/ObjectFlexy.php
  3. ?> 

void HTML_QuickForm_Renderer_ObjectFlexy::setLabelTemplate (string $template)

Description

Set the filename of the template to render form labels. In your template, {label} is replaced by the unmodified label, {error} will be set to the error, if any. {required} will be true if this is a required field Eg.

{if:required}
  <font color="orange" size="1">*</font>
{end:}
{label:h}

Paramètres

chaîne de caractères $template

Filename of template

Valeurs renvoyées

throws no exceptions thrown

Note

Cette fonction ne peut pas être appelée de façon statique.


Remonter Remonter
L'éditeur javascript - CSS - Gentoo - Tutoriaux PHP - Tutoriels PHP - Bretagne - php - Moto - Kit graphique