I have extended SiteConfig and add new field HREmail.
How to retrieve value from this field in code, not in template?
We've moved the forum!
Please use forum.silverstripe.org for any new questions
(announcement).
The forum archive will stick around, but will be read only.
You can also use our Slack channel
or StackOverflow to ask for help.
Check out our community overview for more options to contribute.
You could use:
$config = SiteConfig::current_site_config();
// do something here, eg. $config->HREmail;
Thanks, banal