[eluser]Omaplie[/eluser]
Hi,
Thank you for all your help but I have an another question.
I have my view where I call the function in the helper but after
that I would like to make a foreach on what I got.
My view :
Code:
<?php recup_email(); ?>
<?php foreach $em as $e): ?>
<?php echo $e; ?>
<?php endforeach; ?>
My helper :
Code:
<?php
function recup_email()
{
$CI =& get_instance();
$CI->load->model('unite_model');
$data['em'] = $CI->unite_model->email_membre_model();
}
?>
I think I need to load the $data but usually I made this :
Code:
$layout_network['contenu'] = $CI->load->view('list_vote_friend', $data, TRUE);
$this->load->view('layout_network',$layout_network);
But I can't hereā¦ Do you have a solution ?
Many thanks.