コード例 #1
0
ファイル: form.php プロジェクト: TdroL/hurtex
 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;
 }
コード例 #2
0
ファイル: appform.php プロジェクト: Thanandar/GiftCircle
 /**
  * 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);
 }