Beispiel #1
0
 /**
  *  Creates and HTML label tag
  *  @param string $name of element
  *  @param array $options key => value pairs for tag attributes
  */
 public function label($name, $options = array())
 {
     return FormTagHelper::label(Inflector::humanize($name), $this->get_id($name), $options);
 }
Beispiel #2
0
 public function label($contents, $id, $options = array())
 {
     $id = $this->id . '_' . $id;
     return FormTagHelper::label($contents, $id, $options);
 }