/** * @param string $name * @param string $position * @param array $attributes * * @return $this */ function button($name, $position = "BL", $attributes = array()) { $attributes = array_merge(array("class" => "btn btn-default"), $attributes); $this->button_container[$position][] = Form::button($name, $attributes); return $this; }
/** * Create a HTML reset input element. * * @param string $value * @param array $attributes * @return string */ public function reset($value = 'Submit', $attributes = array()) { $attributes['type'] = 'reset'; $attributes['class'] .= ' btn'; return Form::button($value, $attributes); }