I have this function:
public function GestorGaleriaOperadorCafe(){
$datos=$this->imagenTemporal;
$id=$_GET['id'];
$respuesta=controllerOperadorCafes::mostrarImagenOfertasController($datos,$id);
echo $respuesta;
}
With that function I receive data by ajax, I pass the data to the controller , if I try to receive the variable directly by the controller, it does not work for me
public function mostrarImagenOfertasController($datos,$id){
$datosController=array("ruta"=>$ruta,
"id"=>$id);
DatosOperadorCafe::subirImagenOfertasgaleriaModel($datosController,"galeria_ofertas_cafe");
$respuesta=DatosTienda::mostrarImagenOfertasgaleriaModel($datosController,"galeria_ofertas_cafe");
echo $respuesta['ruta'];
}