myMVC needs to know which config files to load; therefore you will need to tell myMVC what Environment currently should be set as active. And this is done my setting the ENV variable
public/ folder you will find a
There the MVC_ENV variable is declared.
# Environment MVC_ENV=develop
Any file in this directory which has suffix .php will be required automatically (Attention: Reading A-Z). This is the right place to extend or overwrite the main config globally (for all modules), to place global policies and so on.
myMVC main config file
- you should not edit this file
- if you want to change settings, override values in your own module config file
Module config file
if you have set
'develop', the folder
modules/Foo/etc/config/Foo/config/develop.php would then be created automatically at runtime if it does not exist.
MVC_* config values
you can access MVC configurations via
For each Variable there is an identical getter.
Alternativley you can access all MVC Configs via Registry.