Using CakePHP FormHelper with Bootstrap Forms

前端 未结 9 612
天命终不由人
天命终不由人 2020-12-12 14:56

CakePHP\'s FormHelper is how you generate forms when making CakePHP applications. As one might assume, this includes generating input elements, like so:

$thi         


        
9条回答
  •  遥遥无期
    2020-12-12 15:04

    Applying the same principle as above to the form->end function as follows:

    Form->end(array(
        'label' => __('Submit'),
        'class' => 'btn',
        'div' => array(
            'class' => 'control-group',
            ),
        'before' => '
    ', 'after' => '
    ' ));?>

    To produce:

提交回复
热议问题