Beispiel #1
0
 /**
  *  Creates and HTML image submit tag
  *  @param string $image url of the image. Best if used with an image helper
  *  @param array $options key => value pairs for tag attributes
  */
 public function image_submit($image, $options = array())
 {
     $options = $this->has_errors($name, $options);
     return FormTagHelper::image_submit($image, $options);
 }
Beispiel #2
0
 public function image_submit($image, $options = array())
 {
     $name = $this->name . '[' . $value . ']';
     return FormTagHelper::image_submit($value, array_merge($options, array('name' => $name)));
 }