I tried to print the array in the controller, before passing it to a view and this is the output
Array ( [annunci] => Array ( [0] => stdClass Object (
public function get_annunci(){ $query['annunci']=$this->user_model->annunci($this->email); $this->load->view('main_view',$query); }
You're passing the array but you aren't passing annunci as a variable.