title: Code Igniter foreach and view
body: <p>I am using a foreach loop in my controller </p>
  
  <pre><code>foreach ($x as $y) {
  // do some stuff 
  // load view
              $this-&gt;load-&gt;view('success', $data);
  // $data can be multiple arrays
  }
  </code></pre>
  
  <p>it does the work..but the css, js , elements in the view gets repeated .. </p>
  
  <p>please guide me how to make the css ,js to load only once :)</p>
  
  <p>thanks</p>