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 index() { $data=$this->model->viewBlog(); $this->load->view('blog/index',['data'=>$data]); }
I hope this is work. if you handle n number of records use this method.