Welcome Guest, Not a member yet? Register   Sign In
$view_file variable setted by Loader.php
#1

[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
#2

[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.




Theme © iAndrew 2016 - Forum software by © MyBB