title: foreach loop in codeigniter - in controller or view?
body: <p>Im learning CodeIgniter and trying to follow best practices.</p>
  
  <p>I was wondering where is the best place to execute a foreach loop?</p>
  
  <p>Lets say I have a Model where I query the database and return all the results.</p>
  
  <p>Then should I execute foreach in the Controller? Or rather View? Why?</p>