[eluser]shkim[/eluser]
I want to use a variable $abcde in a function of a view like the following code:
---------------------------------------
controller:
$data['abcde'] = 1;
$this->load->view('myview', $data);
myview:
function xxx()
{
$yyy = $abcde; <-- undefined variable error
}
$zzz = $abcde; <-- ok
---------------------------------------
What's wrong with me?