![]() |
$view_file variable setted by Loader.php - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: $view_file variable setted by Loader.php (/showthread.php?tid=48753) |
$view_file variable setted by Loader.php - El Forum - 01-27-2012 [eluser]redwiz[/eluser] Hi all, i named a variable $view_file, and inside a view i make a check: if(isset($view_file)){ do somenthing; } else { do somenthing else; } the code works well with CI 2.0, but in CI 2.1 this variable is setted by the Loader class, inside the foreach cicle at line 762. I checked the documentation and this name is not reported as reserved, so i think it can be a bug. Am i right? Andrea Consigli $view_file variable setted by Loader.php - El Forum - 01-29-2012 [eluser]pickupman[/eluser] You are right. I was able to replicate this as well. I made the change to the class and sent a pull request for it on github. |