public static function button($name, $body, array $attributes = NULL) { if (!isset($attributes['id']) and self::$auto_id) { $attributes['id'] = 'field-' . $name; } return parent::button($name, $body, $attributes) . PHP_EOL; }
/** * Creates a button form input. Note that the body of a button is NOT escaped, * to allow images and other HTML to be used. * * @param string input name * @param string input value * @param array html attributes * @return string */ public function button($name, $body, array $attributes = NULL) { return Kohana_Form::button($name, $body, $attributes); }