/**
  * Creates a new Against2 model.
  * If creation is successful, the browser will be redirected to the 'view' page.
  * @return mixed
  */
 public function actionCreate($factor, $factor_code)
 {
     $model = new Against2();
     $model->factor = $factor;
     $model->factor_code = $factor_code;
     if ($model->load(Yii::$app->request->post()) && $model->save()) {
         return $this->redirect(['factors2/view', 'id' => $model->factor]);
     } else {
         return $this->render('create', ['model' => $model]);
     }
 }