src/Helpers/Form.php
public function generateButtonField($attr)
    {
        $value = 'Submit';

        if (! empty($attr['value'])) {
            $value = $attr['value'];
        }
        unset($attr['value'], $attr['type']);

        return $this->Html->tag('button', $attr, $value, true);
    }
public function generateButtonField($attr)
    {
        $value = 'Submit';

        if (! empty($attr['value'])) {
            $value = $attr['value'];
        }
        unset($attr['value'], $attr['type']);

        return $this->Html->tag('button', $attr, $value, true);
    }
public function generateButtonField ( $ attr ) { $ value = 'Submit' ; if ( ! empty ( $ attr [ 'value' ] ) ) { $ value = $ attr [ 'value' ] ; } unset ( $ attr [ 'value' ] , $ attr [ 'type' ] ) ; return $ this -> Html -> tag ( 'button' , $ attr , $ value , true ) ; }
generate a button

@param   array   array of attributes
@return  string
generate a button