[eluser]stevek42[/eluser]
You know those problems you can't really find that really tug at your brain?
I have a method that is calling one view multiple times, passing in different data each time (it's a modular 'block' view that is part of a larger view). I have ensured beyond all doubt that $data is fresh and different each time it goes to the view. But if the view is called and the variable is undefined, it actually 'becomes' defined and populated with the last value!
For instance:
Code:
1. Call once, $data['whatever'] = 'Hello';
<?=$whatever?> displays: Hello
2. Call two, $data['whatever'] = 'Hi';
<?=$whatever?> displays: Hi
3. Call three, if(isset($data)) unset($data);
<?=$whatever?> displays: Hi
4. Call four, if(isset($data)) unset($data);
<?=$whatever?> displays: Hi
Does $data get stored anywhere else, like in session data? I am using FAL if that makes a difference. I am at my wit's end right now, I'm hoping someone has come across something like this.