echo $form->error($model, 'div_id'); ?> </div> <div class="row"> <?php echo $form->labelEx($model, 'sub_id'); ?> <?php //echo $form->textField($model,'sub_id'); ?> <?php //echo $form->dropDownList($model,'sub_id', CHtml::listData(SubjectMaster::model()->findAll(), 'subject_master_id', 'subject_master_name')); ?> <?php echo $form->dropDownList($model, 'sub_id', SubjectMaster::items(), array('empty' => '---------------Select-------------', 'tabindex' => 6)); ?> <span class="status"> </span> <?php echo $form->error($model, 'sub_id'); ?> </div> <div class="row"> <?php echo $form->labelEx($model, 'batch_id'); ?> <?php //echo $form->textField($model,'batch_id'); ?> <?php