I found similar questions, but they didn't really target my problem.
I have a problem with my configuration file. I have index.php which requires config.php (it contains array of settings), later, index.php requires init.php (contains lots of require clause, the most important atm is router.php it requires). Router.php uses settings from config.php, but apparently it's not visible inside router.php (and any requires in router.php), but it is visible in init.php.
What should I do to make it work?? I heard I should make things from config.php as global, but where should I put it to make it visible to router.php and any files required by it (and required by those files too).?
Thanks for answers guys :)