Hi!
I need help in this particular check box option. How can i create a checkbox function which the value taken from the database? i assumed array is used in this type of function, but i do not know how to do the codings for it…
1 table which is the Programme, have several checkbox which is named Programme Objectives.
so the details of the programme objectives i have put in another table which is called Ref_Prog_Objectives.
<?php echo $form->labelEx($model,'PROG_OBJECTIVES'); ?>
<?php //ni this is for dropdown which takes reference from REF_PROG_TYPE table in database?>
<?php echo $form->dropDownList($model,'PROG_OBJECTIVES',CHtml::listData(REFPROGOBJ::model()->findAll(),'ID','DESC'), array('prompt' => 'Select Program Objectives')); ?> //this one is dropDownList, but this is not what i want to do because i want to create a checkbox to make this programme objectives to be more than 1 objective.
<?php echo $form->error($model,'PROG_OBJECTIVES'); ?>
i am very sorry for my poor english. and thank you in advance.