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
我在此认为:
// CALL THE FUNCTION FROM THE HELPER
<?php recup_email(); ?>
// DATA RECOUP FROM THE HELPER
<?php foreach($em as $e): ?>
<?php echo $e->email_membre; ?>
<?php endforeach; ?>
你可以看到,我称职,在我使用我重新编纂的数据之后。
我的帮助者:
function recup_email()
{
$CI =& get_instance();
$CI->load->model( unite_model );
$data[ em ] = $CI->unite_model->email_membre_model();
}
但我不知道如何在没有使用的情况下重新整理数据。
$layout_network[ contenu ] = $this->load->view( list_vote_friend , $data, TRUE);
$this->load->view( layout_network ,$layout_network);
由于这一观点已经装满。
I hope you understand, sorry for my bad english. Many thanks.