We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

Get site name [SOLVED] | Forum

Sean
Sean Jan 20 '14
How can I get the current site name?


I thought it was the following constant: OW_SITE_NAME


But when I use that i get the following error:


Use of undefined constant OW_SITE_NAME - assumed 'OW_SITE_NAME'


What am I doing wrong?

The Forum post is edited by Sean Jan 21 '14
Mohammad
Mohammad Jan 20 '14
I'm not sure but I think this is it

OW::getConfig()->getValue('base', 'site_name')

I think siteName is global var and you can use in view everywhere you want

The Forum post is edited by Mohammad Jan 20 '14
Sean
Sean Jan 21 '14
Thank you!