$config
$config : array<mixed,>
Class for wrapping sessions.
configure(array|string $what) : self
Read configuration from file or array, if a file, first check in ANAX_APP_PATH/config and then in ANAX_INSTALL_PATH/config.
| array|string | $what | is an array with key/value config options or a file to be included which returns such an array. |
when argument if not a file nor an array.
for chaining.
getConfig(string $key, string $default = null) : mixed
Helper function for reading values from the configuration and appy default values where configuration item is missing.
| string | $key | matching a key in the config array. |
| string | $default | value returned when config item is not found. |
or null if key does not exists.
getOnce(string $key, mixed $default = null) : mixed
Read a value from the session and unset it, this is a form of read once flash memory using the session.
| string | $key | in session variable. |
| mixed | $default | default value to return when key is not set in the session. |
value from session and null if not set.