button() публичный Метод

### New options: - bootstrap-type: Twitter bootstrap button type (primary, danger, info, etc.) - bootstrap-size: Twitter bootstrap button size (mini, small, large)
public button ( $title, array $options = [] )
$options array
Пример #1
0
 public function button($title, array $options = [])
 {
     if (!isset($options['icon'])) {
         $title = $this->Html->icon('save') . ' ' . $title;
     } else {
         if ($options['icon'] != '') {
             $title = $this->Html->icon($options['icon']) . ' ' . $title;
         }
     }
     return parent::button($title, $options);
 }