We provide an extended setting system per module.
The system use some settings for the user module, and each module can add their own settings.
The developer must add one file in the Model folder, where the settings fields are specified. He can set for every field:
- the way to get it
- the way to validate it
- and the way to save it
After that, the user will see a new tab for this module in the Settings section, and a form with the specified fields will appear.
These settings are per user, and is really easy to get them:
$setting = Phprojekt_Loader::getModel('Setting', 'Setting');
$setting->setModule('moduleName');
$settingValue = $setting->getSetting('settingName');
The configuration system is the exactly the same than the previous version, but it is for global settings, it means that the settings are the same for all the users.