Emagister/zend-form-decorators-bootstrap

Radio buttons & MultiCheckboxes have <br /> between them.

Closed this issue · 0 comments

Take the following example:

<?php
// Radio Buttons
$this->addElement('radio', 'myRadio', array (
        'label' => 'Radio Buttons', 
        'multiOptions' => array (
                1 => 'One Fish', 
                2 => 'Two Fish', 
                3 => 'Red Fish', 
                4 => 'Blue Fish' 
        ) 
));

// Radio Buttons
$this->addElement('multiCheckbox', 'myCheckboxes', array (
        'label' => 'Checkboxes',
        'multiOptions' => array (
                1 => 'One Fish',
                2 => 'Two Fish',
                3 => 'Red Fish',
                4 => 'Blue Fish'
        )
));

It produces the following result

<label class=" radio" for="myRadio-1"><input type="radio" name="myRadio" id="myRadio-1" value="1" class="">One Fish</label>
<br />

It seems the view helper is getting the separator '
' when it should be getting '' by default.