0

Whats the easiest way to get Bootstrap radio button structure using Form Helper. Desired structure is this:

<div class="radio">
  <label><input type="radio" name="optradio">Option 1</label>
</div>

I tried changing form templates(values like 'radio' and 'radioWrapper'), but with no success.

datalore
  • 317
  • 1
  • 14

1 Answers1

0

Do you want to wrap this radio button div ? or you can create radio button like below code

   <div class="radio">
        <?php echo $this->Form->radio('optradio',['label'=>'options']); ?>
   </div>

For details radio button

Alimon Karim
  • 4,354
  • 10
  • 43
  • 68