public function actionCrear()
 {
     $input_params = $this->bodyRequest();
     $rut = $input_params['rut_parvulo'];
     if (!isset($rut)) {
         $this->sendResponse("Falta parametro rut_parvulo", 500);
     }
     $user = Parvulo::model()->findByAttributes(array('rut_parvulo' => $rut));
     if ($user === null) {
         $user = Educadora::model()->findByAttributes(array('rut_educadora' => $rut));
         if ($user === null) {
             //$_POST['eliminado'] = 0;
             parent::actionCrear();
         } else {
             $error = true;
         }
     } else {
         $error = true;
     }
     if ($error) {
         $msj = "El rut " . $rut . " ya existe";
         $this->sendResponse($msj, 500);
     }
 }
 public function actionCrear()
 {
     parent::actionCrear();
 }