|Classes of Alexey Dodonov||>||mezon PHP Configuration Options||>||README.md||>||Download|
Mezon has it's own config. It can be accesed with a set of functions, wich are described below.
Getting access to the key in config can be done with get_config_value( $Route , $DefaultValue = false ) function. It returns config value with route $Route and return $DefaultValue if this key was not found. For example:
Setting values for the config key can be done by calling set_config_value( $Route , $Value ) or add_config_value( $Route , $Value ) function. The main difference between these two functions is that the first one sets scalar key, and the second one adds element to the array in config. Here is small example:
If you are not shure that the key exists, then you can check it:
You can also able to delete config key
That's all you need to know about config read/write.