New answers tagged

4 votes

How do i get variables from general.php

It is considered best practice to use the public get methods, so while the Craft 3 answer is correct, you should try to get in the habit of calling the methods. Craft::$app->getConfig()->...
user avatar

Top 50 recent answers are included