I receive, through ajax, the variable $ temporal image, then I put it in a variable called $ data, where I send it to another function, the question is that neither of the two functions recognizes a variable that is in the url , I've tried to put in both and nothing, the funny thing is that if I remove the parameter $ data from the function showImageOfertasController ($ data) if I recognize the variable
class AjaxOC{
public $imagenTemporal;
public function GestorGaleriaOperadorCafe(){
$datos=$this->imagenTemporal;
$respuesta=controllerOperadorCafes::mostrarImagenOfertasController($datos);
echo $respuesta;
}
}
public function mostrarImagenOfertasController($datos){
list($ancho,$alto)=getimagesize($datos);
if ($ancho < 1024 || $alto < 768) {
echo 0;
}else{
$datosController=array("ruta"=>$datos,
"id"=>$_GET['id']);
DatosOperadorCafe::subirImagenOfertasgaleriaModel($datosController,"galeria_ofertas_cafe");
$respuesta=DatosTienda::mostrarImagenOfertasgaleriaModel($datosController,"galeria_ofertas_cafe");
echo $respuesta['ruta'];
}
}