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 (
(Change $query to $query ['annunci']) OK, the $query is an array already, then just change the view file to 'tab_annunci_view'
$query
$query ['annunci']
So:
public function get_annunci(){ $query=$this->user_model->annunci($this->email); $this->load->view('tab_annunci_view',$query); }