Yii model checkbox value checked

To make a model based check box value checked, use html options:

echo $form->checkBoxRow($model,'hidemobile', array('class'=>'checkbox-inline', 'checked'=>'checked')); 

Leave a Reply

Your email address will not be published. Required fields are marked *