View/Helper/BootstrapFormHelper.php
public function create($model = null, $options = [])
    {
        $defaults = [
            'inputDefaults' => [
                'div' => [
                    'class' => 'form-group',
                ],
                'label' => [

                    'class' => 'control-label',
                ],
                'class' => 'form-control',
                'error' => [
                    'attributes' => [
                        'wrap' => 'p',
                        'class' => 'text-danger',
                    ],
                ],
            ],
            'class' => null,
            'role' => 'form',
        ];

        $options = Hash::merge($defaults, $options);
        return parent::create($model, $options);
    }
public function create($model = null, $options = [])
    {
        $defaults = [
            'inputDefaults' => [
                'div' => [
                    'class' => 'form-group',
                ],
                'label' => [

                    'class' => 'control-label',
                ],
                'class' => 'form-control',
                'error' => [
                    'attributes' => [
                        'wrap' => 'p',
                        'class' => 'text-danger',
                    ],
                ],
            ],
            'class' => null,
            'role' => 'form',
        ];

        $options = Hash::merge($defaults, $options);
        return parent::create($model, $options);
    }
public function create ( $ model = null , $ options = [ ] ) { $ defaults = [ 'inputDefaults' => [ 'div' => [ 'class' => 'form-group' , ] , 'label' => [ 'class' => 'control-label' , ] , 'class' => 'form-control' , 'error' => [ 'attributes' => [ 'wrap' => 'p' , 'class' => 'text-danger' , ] , ] , ] , 'class' => null , 'role' => 'form' , ] ; $ options = Hash :: merge ( $ defaults , $ options ) ; return parent :: create ( $ model , $ options ) ; }
Starts a new form with input defaults.

@param string $model
@param array  $options
@return string
Starts a new form with input defaults .