4

I'm sure it's obvious, but how do I get the current site name from within a plugin?

I tried a few things, including

craft()->systemSettings->getSettings('general')

Any ideas?

4

From searching the files (i.e. 'craft/app/Craft.php' line 124) it looks like you can get it using:

craft()->getSiteName()
1
  • 1
    Or, as with most things Craft, without the method call craft()->siteName. Nov 24 '14 at 16:08

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.