public function postButton($title, $url, array $options = [])
{
$formOptions = ['url' => $url];
if (isset($options['method'])) {
$formOptions['type'] = $options['method'];
unset($options['method']);
}
if (isset($options['form']) && is_array($options['form'])) {
$formOptions = $options['form'] + $formOptions;
unset($options['form']);
}
$out = $this->create(false, $formOptions);
if (isset($options['data']) && is_array($options['data'])) {
foreach (Hash::flatten($options['data']) as $key => $value) {
$out .= $this->hidden($key, ['value' => $value]);
}
unset($options['data']);
}
$out .= $this->button($title, $options);
$out .= $this->end();
return $out;
}