public function button($icon = null, $btn = null, $options = []) {
		$result = '';
		if (empty($icon)) {
			return $result;
		}

		$title = '';
		if ($icon === strip_tags($icon)) {
			if ($this->_getClassForElement($icon)) {
				$icon .= ' fa-fw';
			}
			$title = $this->iconTag($icon);
		}
		if (empty($title)) {
			$title = $icon;
		}

		$button = $this->getBtnClass($btn);
		if (empty($options)) {
			$options = [];
		} elseif (!is_array($options)) {
			$options = [$options];
		}
		$options['class'] = $button . (isset($options['class']) ? ' ' . $options['class'] : '');

		$optionsDefault = [
			'escape' => false,
			'type' => 'button',
		];
		if (isset($options['title'])) {
			$optionsDefault['data-toggle'] = 'title';
		}
		$result = $this->ExtBs3Form->button($title, $options + $optionsDefault);

		return $result;
	}
public function button($icon = null, $btn = null, $options = []) {
		$result = '';
		if (empty($icon)) {
			return $result;
		}

		$title = '';
		if ($icon === strip_tags($icon)) {
			if ($this->_getClassForElement($icon)) {
				$icon .= ' fa-fw';
			}
			$title = $this->iconTag($icon);
		}
		if (empty($title)) {
			$title = $icon;
		}

		$button = $this->getBtnClass($btn);
		if (empty($options)) {
			$options = [];
		} elseif (!is_array($options)) {
			$options = [$options];
		}
		$options['class'] = $button . (isset($options['class']) ? ' ' . $options['class'] : '');

		$optionsDefault = [
			'escape' => false,
			'type' => 'button',
		];
		if (isset($options['title'])) {
			$optionsDefault['data-toggle'] = 'title';
		}
		$result = $this->ExtBs3Form->button($title, $options + $optionsDefault);

		return $result;
	}
public function button ( $ icon = null , $ btn = null , $ options = [ ] ) { $ result = '' ; if ( empty ( $ icon ) ) { return $ result ; } $ title = '' ; if ( $ icon === strip_tags ( $ icon ) ) { if ( $ this -> _getClassForElement ( $ icon ) ) { $ icon .= ' fa-fw' ; } $ title = $ this -> iconTag ( $ icon ) ; } if ( empty ( $ title ) ) { $ title = $ icon ; } $ button = $ this -> getBtnClass ( $ btn ) ; if ( empty ( $ options ) ) { $ options = [ ] ; } elseif ( ! is_array ( $ options ) ) { $ options = [ $ options ] ; } $ options [ 'class' ] = $ button . ( isset ( $ options [ 'class' ] ) ? ' ' . $ options [ 'class' ] : '' ) ; $ optionsDefault = [ 'escape' => false , 'type' => 'button' , ] ; if ( isset ( $ options [ 'title' ] ) ) { $ optionsDefault [ 'data-toggle' ] = 'title' ; } $ result = $ this -> ExtBs3Form -> button ( $ title , $ options + $ optionsDefault ) ; return $ result ; }
Return HTML element of button

@param string $icon class of icon
@param string $btn class of button
@param array|string $options HTML options for button element
@return string HTML element of button.
@link http://fontawesome.io,
http://getbootstrap.com/css/#buttons
Return HTML element of button