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