php-mvc
php-mvc copied to clipboard
Accessing App\Config from public dir
Hello,
Is it possible to access the App\Config file from the public folder? My goal is to set \App\Config::VAR and access it in public\nested_dir.
Thanks!
You can either require the class file manually using require, or include Composer's autoloader (as we do in public/index.php)