Within the config folder there is a general.php file with various vars which are site specific.

how do i get at these from within a plugin?

Thanks for your help.

  • its ok i found it - craft()->config->get('JsPath'); for example. – garyconstable Sep 24 '15 at 10:26

For Craft 3:

Craft::$app->config->general->{var name}

| improve this answer | |
| improve this answer | |

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.