1

Additional settings added to config/general.php are placed in _customSettings private object.

This means they cannot be retrieved using Craft::$app->config->general->someCustomSetting.

How can I access them?

  • The key you’ve got there should work. GeneralConfig has a __get method that specifically checks for _customSettings keys. – Dom Stubbs Sep 16 '19 at 14:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.