Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Customising the CMS /

How to retrieve value from SiteConfig


Reply


3 Posts   1015 Views

Avatar
tbilyn

Community Member, 9 Posts

8 December 2010 at 2:38am

I have extended SiteConfig and add new field HREmail.
How to retrieve value from this field in code, not in template?

Avatar
banal

Community Member, 901 Posts

8 December 2010 at 4:19am

Edited: 08/12/2010 4:20am

You could use:

$config = SiteConfig::current_site_config();
// do something here, eg. $config->HREmail;

Avatar
tbilyn

Community Member, 9 Posts

8 December 2010 at 5:23am

Thanks, banal