/**
  * 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 SubunPengabdian the loaded model
  * @throws CHttpException
  */
 public function loadModel($id)
 {
     $model = SubunPengabdian::model()->findByPk($id);
     if ($model === null) {
         throw new CHttpException(404, 'The requested page does not exist.');
     }
     return $model;
 }
Пример #2
0
                <?php 
echo $form->error($model, 'PENGAJUAN_Ke');
?>
            </div>
        </div>
        
        <div class="form-group">
		<?php 
echo $form->labelEx($model, 'ID_SUBUNPENGAB', array('class' => 'col-md-3 control-label'));
?>
            <div class="col-md-4">
		<?php 
//echo $form->textField($model,'ID_SUBUNPENGAB',array('class'=>'span6 m-wrap'));
?>
                <?php 
echo $form->dropDownList($model, 'ID_SUBUNPENGAB', CHtml::listData(SubunPengabdian::model()->findAll(), 'ID_SUBUNPENGAB', 'SUBUNPENGAB'), array('class' => 'form-control', 'empty' => '- Pilih Sub Unsur -'));
?>
		<?php 
echo $form->error($model, 'ID_SUBUNPENGAB');
?>
            </div>
	</div>
        
	<!--<div class="control-group">
		<?php 
echo $form->labelEx($model, 'ID_UNSUR_PENGABDIAN', array('class' => 'col-md-3 control-label'));
?>
            <div class="controls">
		<?php 
echo $form->textField($model, 'ID_UNSUR_PENGABDIAN', array('class' => 'form-control'));
?>