Going over the code to add text before between and after as described
here.
http://book.cakephp.org/view/191/options-before-options-between-options-separator-a

This doesn't say anything about it not working for a radio input.
Does anybody know if it should work for radio buttons
ver: 1.2.0.7692 RC3

Is it you can only separate radio inputs with the separator option.
I am looking for this to work just like the text and checkbox fields.

Works fine
        <?php echo $form->input('field', array(
          'before' => '--before--',
          'after' => '--after--',
          'between' => '--between---'
        ));?>
<div class="input text">--before--<label for="PeopleField">Field</
label>--between---<input name="data[People][field]" value=""
id="PeopleField" type="text">--after--</div>

Works fine
        <?php echo $form->input('field', array(
          'before' => '--before--',
          'after' => '--after--',
          'between' => '--between---',
          'type' => 'checkbox',
          'options' => array('value')
        ));?>
<div class="input checkbox">--before--<input name="data[People]
[field]" id="PeopleField_" value="0" type="hidden"><input
name="data[People][field]" options="" value="1" id="PeopleField"
type="checkbox">--between---<label for="PeopleField">Field</label>--
after--</div>

Does not work
        <?php echo $form->input('field', array(
          'before' => '--before--',
          'after' => '--after--',
          'between' => '--between---',
          'type' => 'radio',
          'options' => array('value')
        ));?>
<div class="input radio">--before--<input name="data[People][field]"
id="PeopleField_" value="" type="hidden"><input name="data[People]
[field]" id="PeopleField0" value="0" type="radio"><label
for="PeopleField0">value</label>--between-----after--</div>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to