Why don't you use sfWidgetFormChoice with expanded = true and multiple = true?
http://www.symfony-project.org/forms/1_2/en/A-Widgets#chapter_a_sub_choice_representations

On Wed, Dec 30, 2009 at 08:01, dziobacz <aaabbbcccda...@gmail.com> wrote:
> Is it possible to change name widget ? I am doing that:
>
> foreach ($this->getOption('param') as $i)
> {
>        $this->widgetSchema['comment'.$i['id']] = new
> sfWidgetFormInputCheckbox(array(), array('name' => 'test'));
> }
>
> but I get:
> <input id="test" type="checkbox" name="test"/>
> <input id="test" type="checkbox" name="test"/>
> <input id="test" type="checkbox" name="test"/>
> ........
>
> ID is the same as name !!
>
> --
>
> You received this message because you are subscribed to the Google Groups 
> "symfony users" group.
> To post to this group, send email to symfony-us...@googlegroups.com.
> To unsubscribe from this group, send email to 
> symfony-users+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/symfony-users?hl=en.
>
>
>

--

You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.


Reply via email to