Added function to retrieve values from config in models/core.php