public function loadModel($id) { $model = ProCommission::model()->findByPk($id); if ($model === null) { throw new CHttpException(404, 'The requested page does not exist.'); } return $model; }
$mUser->first_name = $model->name; $mUser->email_not_login = $model->email; $mUser->nric_passportno_roc = $model->nric_passportno_roc; $mUser->contact_no = $model->contact_no; $mUser->address = $model->address; $mUser->postal_code = $model->postal_code; $mUser->pass_expiry_date = $model->pass_expiry_date; $mUser->id_type = $model->id_type; // $mUser->role_id = $role_id; $aUpdate = array('first_name', 'email_not_login', 'nric_passportno_roc', 'contact_no', 'address', 'postal_code', 'pass_expiry_date', 'id_type');