How To Create Validation Rules For Cactivecheckboxlist

Hi,

I am creating a Checkbox list using CActiveCheckboxList from CFormModel.

Because the data returned by checkboxlist is in Array what validation rules should I use?

Actually I don’t need any validation I just want the checkbox remain selected after page refresh. But this thing does not happens until you define any validation rule under rules method.

Please help.

or you just add it to the safe validator

http://www.yiiframework.com/doc/api/1.1/CSafeValidator

Thanks

Go through

http://www.yiiframework.com/wiki/56/