Exemplo n.º 1
0
 public static function model($className = __CLASS__)
 {
     return parent::model($className);
 }
Exemplo n.º 2
0
$modJabatan = JabatanM::model()->findByPK($jabatan_id);
echo $modJabatan->jabatan_nama;
?>
                                    </div>
                            </div>
                               
                                
                            <div class="mws-form-row">
                                    <?php 
echo 'Sub Departement :';
?>
   
                                    <div style="float:right;">                
                                        <?php 
$subdepartement_id = $_GET['KKontrakkaryawanR']['subdepartement_id'];
$modSubdepartement = SubdepartementM::model()->findByPK($subdepartement_id);
echo $modSubdepartement->subdepartement_nama;
?>
                                  </div>
                            </div>
                               
                                
                            <div class="mws-form-row">
                                    <?php 
echo 'Departement :';
?>
   
                                    <div style="float:right;">                                
                                        <?php 
$departement_id = $_GET['KKontrakkaryawanR']['departement_id'];
$modDepartement = DepartementM::model()->findByPK($departement_id);
 /**
  * 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 the ID of the model to be loaded
  */
 public function loadModel($id)
 {
     $model = SubdepartementM::model()->findByPk($id);
     if ($model === null) {
         throw new CHttpException(404, 'The requested page does not exist.');
     }
     return $model;
 }