Re: [symfony-users] change name of checkbox without change id

2009-12-30 Thread Gábor Fási
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 wrote: > Is it possible to change name widget ? I am doing that: > > foreach ($this->ge

Re: [symfony-users] change name of checkbox without change id

2009-12-29 Thread DEEPAK BHATIA
Try this foreach ($this->getOption('param') as $i) { $temp = 'test'.$i; $this->widgetSchema['comment'.$i['id']] = new sfWidgetFormInputCheckbox(array(), array('name' => $temp)); } On Wed, Dec 30, 2009 at 12:31 PM, dziobacz wrote: > Is it possible to change name widget ? I am d

[symfony-users] change name of checkbox without change id

2009-12-29 Thread dziobacz
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: ID is the same as name !! -- You received this message