I am using Symfony 1.3.6 on Ubuntu 10.0.4.
I am using the sfWidgetFormSelectRadio to allow a user to select a picture from a list, in a form.
In the action, the pictures are set up like this:
$this->form->setWidget('chosenpic', new sfWidgetFormSelectRadio(array(
'choices' => $this->pictures,
'default' => $this->pictures[count($this->pictures)-1] ))
);
In the template, the widget is displayed like this:
<?php echo $form['chosenpic']->render(array('id'=>'check'.($i+1), 'value'=> ($i+1), 'width' => "80", 'height' => "80")); ?>
This generates the following output:
<ul class="radio_list"><li><input type="radio" width="80" height="80" id="check1" value="1" name="flowers[chosenpic]"> <label for="flowers_chosenpic_0">http://example.com/media/images/48408000/jpg/_48408794_009829449-1.jpg</label></li></ul>
I do no want the the label for appearing, as it messes up the form. Short of manually generating the HTML myself (using the form and widget names, is there a way that I can prevent the widget from displaying a 'label for' ?