Try this
$m = 1;
foreach ($this-getOption('param') as $i)
{
$temp = 'test'.$m;
$m = $m + 1;
$this-widgetSchema['comment'.$i['id']] = new
sfWidgetFormInputCheckbox(array(), array('name' = $temp));
}
On Wed, Dec 30, 2009 at 6:43 PM, dziobacz aaabbbcccda...@gmail.com
Try this
$m = 1;
foreach ($this-getOption('param') as $i)
{
$temp = 'test'.$m;
$temp1 = 'temp'.$m;
$m = $m + 1;
$this-widgetSchema['comment'.$i['id']] = new
sfWidgetFormInputCheckbox(array(), array('name' = $temp, 'id' =
$temp1));
}
On Wed, Dec 30, 2009 at
I guess this holds for radiobutton and not checkboxAre you want to it
for checkbox ?
Do you want to select one checkbox at a time ?
On Wed, Dec 30, 2009 at 7:09 PM, dziobacz aaabbbcccda...@gmail.com wrote:
Now they have different names but they should have the same names and
different ID:
Try this
$m = 1;
foreach ($this-getOption('param') as $i)
{
$temp = 'test'.$m;
$temp1 = 'temp';
$m = $m + 1;
$this-widgetSchema['comment'.$i['id']] = new
sfWidgetFormInputCheckbox(array(), array('name' = $temp, 'id' =$temp1));
}
On Wed, Dec 30, 2009 at 7:19 PM, dziobacz