hello guys,
i am new to yii framework.
1:I want to take checkbox name from database dynamically.
2:Each corresponding checkbox there is hidden textfield which enable when checkbox will checked and store corresponding values to database.
hello guys,
i am new to yii framework.
1:I want to take checkbox name from database dynamically.
2:Each corresponding checkbox there is hidden textfield which enable when checkbox will checked and store corresponding values to database.
<?php $form=$this->beginWidget('CActiveForm', array(
'id'=>'myform',
'enableAjaxValidation'=>true,
'clientOptions' => array(
'validateOnSubmit'=>true
),
)); ?>
<?php echo $form->checkBox($model,'attribute'); ?>
<?php $form->endWidget(); ?>