[eluser]Ketchxup[/eluser]
Hey,
I'm trying to load a view file twice
view:
Code:
<?php foreach ($URL as $val):?>
<li><h3><?=$val?></h3></li>
<? endforeach;?>
</ul>
I create a function to load the viewfile. The array $data is loaded from the database.
Code:
function some($data)
{
//...
foreach( $data as $v )
{
$r .= $this->load->view('modules/viewfile', $v, TRUE);
}
return $r;
}
The problem is that second continuity from the loop also contains data from the first continuity it just sum it up. I suggest the var
$URL is cached somewhere
I already try to unset it but i failed:
Code:
$this->load->_ci_cached_vars[$key]
thx