si hai centrato il problema.
con print_r ho visto che i valori sono giusti.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;
}
}
}
solo che non riesco a passare $data['quantita'] alla view.
ottengo un errore Message: Trying to get property of non-objectCodice PHP:
<?php
foreach ($quantita as $qt) {
echo $qt->giac_id;
}
?>