php - CakePHP 1.3 - Radio label without legend? -
in cakephp 1.3 form inputs i'm able add label option 'label' => 'mylabel'
, radio button input works bit differently. uses legend , fieldset organize buttons , label buttons. there way remove legend , fieldset (using 'legend => false'
) while @ same time adding regular label other input use? in same format other inputs it? example, like:
$this->form->input('active1', array('type' => 'radio', 'options' => array(1=>'yes', 0=>'no'), 'label' => 'active', 'legend' => false));
this removes label. there way leave label in option? or have create custom function me? thank much!
there not way use standard label option radio button, easy add in view without use of custom function:
<label>mylabel</label> <?php echo $this->form->radio('...
Comments
Post a Comment