Config can able to register and retrieves the entire merge configuration.
JiNexus Framework config files are just simple arrays:
The configuration of the JiNexus Framework core is done in the config/application.config.php file.
All of the remaining framework configuration is done by editing the per module files that are located in the module/{Module}/config directory.
These are the list of different config files in the framework
In modules.config.php all modules are loaded from top to bottom. And each module configuration are merge to one whole configuration that includes routes, view_manager, etc. So if there are instances that a similar keys exist in each of your module configuration, please be aware that the latest module may overwrite the previous modules configuration.
These are the list of available config methods that can be use in the Controller.
Method | Description |
---|---|
getConfig() | Get the entire available config |
setConfig() | Set an entire new config |
get() | Get a config by key or needle and return its value or null if there is no element set |
set() | Set a value in the config provided by its key or needle |
has() | Check if needle exist in the config, return true if found and false if not |
If you found a typo or error, please help us improve this document. Contact Us