Answer the question
In order to leave comments, you need to log in
What is the best way to get the application config from the database?
Hello friends!
There is a need to store the application config (settings: param, value)
in the database so that it can be easily accessed from the UI.
I want to receive it like this: $settings = AppSettings::get();
Question: where in the application should I receive this config so that it is always available from anywhere in the application? Is there a class autoload for this? So that you can use it later, $settings->sitename
etc.
Answer the question
In order to leave comments, you need to log in
You can simply make a config of the application components and already work with it any way and anywhere
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question