title: Get data from helper in CodeIgniter
body: <p>I have a trouble with CodeIgniter.
  I would like to get (recoup) data from a helper that I call in a view.
  I will explain with the code</p>
  
  <p>Here's my view :</p>
  
  <pre><code>// CALL THE FUNCTION FROM THE HELPER
      &lt;?php recup_email(); ?&gt;
  
  // DATA RECOUP FROM THE HELPER
      &lt;?php foreach($em as $e): ?&gt;
         &lt;?php echo $e-&gt;email_membre; ?&gt;
      &lt;?php endforeach; ?&gt;
  </code></pre>
  
  <p>As you can see, I call the function and just after I would like to use data that I had recoup.</p>
  
  <p>Here's my helper :</p>
  
  <pre><code>function recup_email()
  {
      $CI =&amp; get_instance();
      $CI-&gt;load-&gt;model('unite_model');
  
      $data['em'] = $CI-&gt;unite_model-&gt;email_membre_model();        
  }
  </code></pre>
  
  <p>But I don't know how to recoup data without using </p>
  
  <pre><code>    $layout_network['contenu'] = $this-&gt;load-&gt;view('list_vote_friend', $data, TRUE);
      $this-&gt;load-&gt;view('layout_network',$layout_network); 
  </code></pre>
  
  <p>because the view is already loaded.</p>
  
  <p>I hope you understand, sorry for my bad english.
  Many thanks.</p>