public function postButton($title, $url, array $options = [])
    {
        $options = optionsParser($options)->add('role', 'button')->addButtonClasses();

        return self::postLink($title, $url, $options->toArray());
    }
public function postButton($title, $url, array $options = [])
    {
        $options = optionsParser($options)->add('role', 'button')->addButtonClasses();

        return self::postLink($title, $url, $options->toArray());
    }
public function postButton ( $ title , $ url , array $ options = [ ] ) { $ options = optionsParser ( $ options ) -> add ( 'role' , 'button' ) -> addButtonClasses ( ) ; return self :: postLink ( $ title , $ url , $ options -> toArray ( ) ) ; }
Creates a button with a surrounding form that submits via POST.

This method creates a button in a form element. So don't use this
method in an already opened form.

To create a normal button, you should use the `button()` method.
To create a button with the appearance of a link, you should use the
`button()` method provided by the `HtmlHelper`.
@param string $title Button title
@param string|array|null $url Cake-relative URL or array of URL
parameters or external URL
@param array $options Array of options and HTML attributes
@return string Html code
@uses postLink()
Creates a button with a surrounding form that submits via POST .