/**
  * Creates a new Saludablecomunidad model.
  * If creation is successful, the browser will be redirected to the 'view' page.
  * @return mixed
  */
 public function actionCreate($id)
 {
     $model = new Saludablecomunidad();
     if ($model->load(Yii::$app->request->post()) && $model->save()) {
         //return $this->redirect(['view', 'id' => $model->id_sal_com]);
         //Modificar con el ID del indicador en la encuesta
         $model_encuesta = \app\models\Factencuesta::findOne($id);
         $model_encuesta->id_sal_com = $model->id_sal_com;
         $model_encuesta->save();
         return $this->redirect(['factencuesta/view', 'id' => $id]);
     } else {
         return $this->render('create', ['model' => $model]);
     }
 }