Answer the question
In order to leave comments, you need to log in
Options from the database to the global array for accessibility anywhere in the application. How to implement this?
Hello. For example, there is a table in the database of the form id|setting_name|setting_value - where the basic settings of the application are stored, for example, the global title, API keys, etc.
What is the best way to implement the ability to reach the setting at any point in the application, for example, through the setting['option_name'] array or the setting('option_name') method?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question