public function actionRefreshConcepto($id_concepto = null) { if (empty($id_concepto) || $id_concepto == 'null') { return; } $ac = AccesosConceptos::findOne($id_concepto); \Yii::$app->session->set('req_seguro', $ac->req_seguro); // en la vista solo se usa el grupo personas pero se devuelve todo \Yii::$app->response->format = 'json'; $response = $this->refreshListas(); return $response; }
/** * Finds the AccesosConceptos model based on its primary key value. * If the model is not found, a 404 HTTP exception will be thrown. * @param integer $id * @return AccesosConceptos the loaded model * @throws NotFoundHttpException if the model cannot be found */ protected function findModel($id) { if (($model = AccesosConceptos::findOne($id)) !== null) { return $model; } else { throw new NotFoundHttpException('The requested page does not exist.'); } }