示例#1
0
 public function actionUpdateType($id)
 {
     $this->checkAccess('admin_staff');
     $model = DisputeTypes::findOne((int) $id);
     if ($model->load(Yii::$app->request->post()) && $model->save()) {
         return $this->redirect('/dispute/types');
     } else {
         return $this->render('update', ['model' => $model]);
     }
 }
示例#2
0
 private function getDisputeType()
 {
     return $this->hasOne(DisputeTypes::className(), ['type_id' => 'transaction_dispute_type'])->select('type_name')->one()->type_name;
 }