Collecting Tabular Input

I need to collect data in the form using "Collecting to Tabulate Input." in the form, I have several "activeRadioButtonList."

Exemple:

CHtml::activeRadioButtonList($tipo_evento, "aluno_ve[$i]", array('1'=>'sim', '0'=>'não'));

I receive this message:

CException

Description

Property "tipo_evento.aluno_ve[0]" is not defined.

Source File

D:\WebServer\Apache2210\htdocs\yii-1.0.0.r322\framework\db\ar\CActiveRecord.php(393)

Thanks!

Could you please create a ticket about this issue? Thanks!

I solved the problem!!!

I had to force the attribute 'name' in the array of the $htmlOptions.

See the exemple:



foreach($tipoeventoList as $i=>$tipo) {


   echo CHtml::activeRadioButtonList($tipo, "aluno_ve", array('1'=>'sim', '0'=>'não'), array('name'=>get_class($tipo)."[$i][aluno_ve]", 'separator'=>' / '));


}


The way below it's doesn't work:



foreach($tipoeventoList as $i=>$tipo) {


   echo CHtml::activeRadioButtonList($tipo, "aluno_ve[$i]", array('1'=>'sim', '0'=>'não'), array('separator'=>' / '));


}


CHtml::activeRadioButtonList($tipo, "aluno_ve[$i]", …) could be a bug?

Sorry my english :))

Yes, it is a bug.

I created a ticket

http://code.google.c…detail?id=53#c0

Armando from Rio de Janeiro - Brazil  ;D