si hai centrato il problema.
Codice PHP:
            foreach ($COLORI_QT as $col) {
                foreach (
$TAGLIE as $tg) {
                    foreach (
$this->collezioni_model->getGiacenzaPerArticolo($this->uri->segment(2), $col->colore_id$tg->tg_id) as $key => $val) {
                        
$data['quantita'] = $val;
                    }
                }
            } 
con print_r ho visto che i valori sono giusti.
solo che non riesco a passare $data['quantita'] alla view.
Codice PHP:
 <?php
                        
foreach ($quantita as $qt) {
                            echo 
$qt->giac_id;
                        }
                        
?>
ottengo un errore Message: Trying to get property of non-object