[Solar-talk] Checkbox and radio labels with Solar_View_Helper_Form

Rodrigo Moraes rodrigo.moraes at gmail.com
Tue Sep 5 09:16:38 PDT 2006


I'm trying to add a checkbox or radio label using Solar_View_Helper_Form:

echo $this->form()
    ->checkbox(array(
        'name'    => 'persist',
        'value'   => '1',
        'options' => array(0 => 1),
        'label'   => $this->getTextRaw('LABEL_PERSIST'),
        )
    ->submit(array(
        'name'    => 'submit',
        'value'   => $this->getTextRaw('SUBMIT_LOGIN')
    ))
    ->fetch();

The result is a duplicated label for the checkbox. Perhaps it is
necessary to separate the "checkbox-group" label from the checkbox
label itself? I just need one checkbox, one single label. If it was a
series of checkboxes, I guess a group label would be necessary, and
then one label for each element. I'm missing something probably,
because the current behaviour makes checkboxes unusable with
Solar_View_Helper_Form. Please tell me I'm wrong...

rodrigo


More information about the solar-talk mailing list