[eluser]CroNiX[/eluser]
No, code that has to do with displaying data should be in the view. Code dealing with retrieving data should be in the controller.
Code:
//Helper
function recup_email()
{
$CI =& get_instance();
$CI->load->model('unite_model');
return $CI->unite_model->email_membre_model(); //just return it and load vars in the controller
}
Code:
//Controller
$data['em'] = recup_email();
$this->load->vars($data);
//...
$this->load->view('your_view');
Code:
//View
<?php foreach($em as $e): ?>
<?php echo $e->email_membre; ?>
<?php endforeach; ?>