Yii Checkbox Tutorials

CHtml Checkbox

Using CHtml class we are creating checkbox in yii. This post will help you to understand about how to create checkbox in different method, checkbox properties, array value, how to get checkbox value in controller and checkbox validation in model.CheckBoxChecked PropertiesCheckbox ValueCheckbox Validation In ModelGet Checkbox Value In ControllerCheckBoxactiveCheckbox With CHtml <?php echo CHtml::activeCheckBox($model,'attribute',array()); ?> CHtml activeCheckbox generates a check box for a model attribute.Checkbox With Form <?php echo $form->checkBox($model,'attribute'); […]... Read More »