[eluser]Unknown[/eluser]
hello,
I don't know if somebody experienced this kind of problem.
I use the latest CI on debian squeeze (standard apache, php and xdebug packages) and I develop with eclipse (also standard debian squeeze package).
when I send variables from the controler to a view, some of them disapear. I mean, I traced the execution in loader.php and after the execution of the "extract()" which put the content of the array send from the controler to the view and which contains the variables. right after the "extract()", some variables aren't there.
after spent some time, I thought it was a problem with xdebug. but even if I remove xdebug, the problem is still there.
I tried to prefix the variables, put them in another array inside the variables array. still didn't work.
I corrected this by putting "$viewVariables = $this->_ci_cached_vars;" right after the "extract()" and before the include of the view. of course, I have to access my variables in the view using $viewVariables[ ] but all works fine now.
anybody had the same kind of problems ?
cordialement,
jp