I have this code in my controller:
$array = $this->get_latest_posts(5, 0);
foreach($array as $row){
$this->load->view('blog_page', $row);
}
In my model it goes like this:
// Some SQL query here;
$array = $query->result_array();
return $array;
But the view simply does not load. Where the problem may be?
Thank you for answers!