-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Making config variable global as CI3 #1297
Comments
Code: You can access anything from application/Config/App (or whichever config file you are interested in), and you can even create config items on the fly. The pre-existing ones are supposed to be static, so instance-agnostic. If you wanted the same for yours, then add it to App similarly. |
Looking at this, Its possible if you make the property public |
All of the config values are public and, as @rmcdahal pointed out, it's pretty simple to do that. Closing. |
it's the pretty exact thing i needed ^^ |
I'm building a great app on the testing version of the CI4, It's realy amazing thing to see CI based on the Advanced OOP algorithms. I liked the old style although it was a bit needing tweaking on each update or new version.
some of the great features of CI3 is the globalization of variables with $config->set_item()/config_item()
it's possible with some tweaks or directly via namespaces, but it would be great if it's implemented somehow as a feature to reduce calls of classes/namespaces using custom helpers
thanks
The text was updated successfully, but these errors were encountered: