I need create following html code for working with bootstap
<div class="input-group">
<span class="input-group-addon">
<input type="radio">
</span>
<input type="text" class="form-control">
</div>
So I need single radio button with out any label and legend. I just try as follows.
echo $this->Form->radio('Answer.0.correct', array(
'value' => 1,
));
It has generate following html
<input type="hidden" value="" id="Answer0Correct_" name="data[Answer][0][correct]">
<input type="radio" value="value" id="Answer0CorrectValue" name="data[Answer][0][correct]">
<label for="Answer0CorrectValue">1</label>
I set label option as false.
echo $this->Form->radio('Answer.0.correct', array(
'value' => 1,
'label' => false,
));
But it had create unwanted radio with fieldset.
<fieldset>
<legend>Correct</legend>
<input type="hidden" value="" id="Answer0Correct_" name="data[Answer][0][correct]">
<input type="radio" value="value" id="Answer0CorrectValue" name="data[Answer][0][correct]">
<label for="Answer0CorrectValue">1</label>
<input type="radio" value="label" id="Answer0CorrectLabel" name="data[Answer][0][correct]">
<label for="Answer0CorrectLabel"></label>
</fieldset>
How can i create single radio button (with his hidden field)?