I'm using Twitter Bootstrap 3. Html code for the radio buttons should look like:
<div class="radio">
<label>
<input type="radio" name="search_text_source" value="title" />
In the title
</label>
</div>
<div class="radio">
<label>
<input type="radio" name="search_text_source" value="content" />
In the content
</label>
</div>
...
In the form, I create radio buttons as follows:
$this->add(array(
'name' => 'search_text_source',
'type' => 'radio',
'options' => array(
'value_options' => array(
'title' => 'In the title',
'content' => 'In the content',
'description' => 'In the description',
),
),
));
How do I get separate each radio button in view script?
P.S.: Or any decision, which will create like html code using the form.
EDIT:
Thanks to Sam figured out. But I will leave these variants for more complex cases. During the experiments, the following happened (with standart view helper):
// in view script:
<?
$this->formRadio()->setSeparator('</div><div class="radio">');
?>
<!-- some html -->
<div class="radio">
<?php echo $this->formRadio($form->get('search_text_source')) ?>
</div>
Once again, thank Sam for help, without him I would not understand.