Ejemplo n.º 1
0
 public function actionPlanilla($id = null)
 {
     if (is_numeric($id)) {
         $data = Yii::$app->db->createCommand("select concat(nombre,' ',apellido)as nya,deportista.dni,deportista.numero_socio,telefono,id_planilla, fecha_nac,domicilio,email from persona,deportista " . "where deportista.id_planilla={$id} and deportista.dni=persona.dni")->queryOne();
         $planilla = Planilla::find()->where(['id_planilla' => $id])->one();
         return $this->render("planilla", ['planilla' => $planilla, 'data' => $data]);
     }
 }