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