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