/** * Returns the data model based on the primary key given in the GET variable. * If the data model is not found, an HTTP exception will be raised. * @param integer $id the ID of the model to be loaded * @return AkUnsur the loaded model * @throws CHttpException */ public function loadModel($id) { $model = AkUnsur::model()->findByPk($id); if ($model === null) { throw new CHttpException(404, 'The requested page does not exist.'); } return $model; }
<?php echo $form->error($model, 'ID_DOSEN'); ?> </div> </div> <div class="form-group"> <?php echo $form->labelEx($model, 'ID_AK_UNSUR', array('class' => 'col-md-3 control-label')); ?> <div class="col-md-4"> <?php //echo $form->textField($model,'ID_AK_UNSUR',array('class'=>'span6 m-wrap')); ?> <?php echo $form->dropDownList($model, 'ID_AK_UNSUR', CHtml::listData(AkUnsur::model()->findAll(), 'ID_AK_UNSUR', 'AK_UNSUR'), array('class' => 'form-control')); ?> <?php echo $form->error($model, 'ID_AK_UNSUR'); ?> </div> </div> <div class="form-group"> <?php echo $form->labelEx($model, 'JENJANG_JABATAN', array('class' => 'col-md-3 control-label')); ?> <div class="col-md-4"> <?php echo $form->textField($model, 'JENJANG_JABATAN', array('class' => 'form-control', 'readonly' => true)); ?>