Hi again.

I've found a solution to my problem.

I ended up creating the input-radios one at the time, and inserting
the html I need between them.
What I was actually mistaking was not setting the
attributes['value'].

                                        echo $form-
>input('RuleRecurrence.weekdayconditions', array(
                                                'type' => 'radio',
                                                'options' => array('always' => 
'Sempre'),
                                                'checked' => ($WeekdayCondition 
== 'always' ? true : false),
                                                'value' => 'always')
                                        );

Cheers,
Gian.


On 26 Mar, 17:57, Gianluca <[email protected]> wrote:
> Hello everybody.
>
> I need to create few radio options, each one separated by different
> portions of html code.
>
> E.g.:
>
> <input type='radio' id='data[User][Title]' value='1'>Mr</input>
> <br><input type='select'...> ...something... <br>
> <input type='radio' id='data[User][Title]' value='2'>Mrs</input>
> <p> some other html </p>
> <input type='radio' id='data[User][Title]' value='3'>Ms</input>
> <a ...>...something else...</a>
>
> etc.
>
> I know that I might use the options['separator'] if the html code
> between the radios was the same. But that's not my case.
> Is there any way to achive this in cakePHP? I am using the version
> 1.3.
>
> Thanks in advance,
> Gian.

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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

To unsubscribe from this group, send email to 
cake-php+unsubscribegooglegroups.com or reply to this email with the words 
"REMOVE ME" as the subject.

Reply via email to