I am making a really silly error that I have no idea why.
I include a file right before a class declaration like this :
require_once('assets.php') //php_include_path is set to the correct folder and the file loads
class A{
function __construct(){
var_dump($assets); // dumps NULL
}
}
In assets.php, I have an array like this:
$assets['file'] = array('abc','qrd');
So why am I getting NULL here?