3

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
6
craft()->config->get('JsPath');
6

For Craft 3:

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

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.