Unable to access global variable defined in settings.php [Drupal]
- by Senthil
I am developing a website using Drupal 6.16.
I want to define a variable in settings.php like
$ge_path = 'some/path/here';
And I want to use it inside my modules.
function mymodule_block(....) {
global $ge_path;
$fullPath = $ge_path . '/another/path';
doSomething($fullPath);
}
But I am getting NULL as the value of $ge_path.
Why am I…