Checkboxlist Issue


I’m very new to Yii and I’m having problems with a contact form I need to add check boxes to.


<?php echo CHtml::activeLabel($model, Yii::t('Company', 'Modules'), array('class' => 'control-label', 'required' => false)); ?>



       echo CHtml::checkBoxList($model, 'modules' ,array(










I have a feeling this is just some kind of syntax error. Like I said, I’m new to the Yii framework so this may be a dumb question.


You probably want to use activeCheckBoxList : http://www.yiiframew…kBoxList-detail

BTW, you probably would like to use activeLabelEx as well.

And welcome to the forum!

@yugene Thanks i am also facing this problem thank you for the checkboxlist solution.