public static function load($config = '') { $config = $config === '' ? 'default' : $config; $file = str_replace('.php', '', $config); $file_path = 'config/' . $file . '.php'; if (!file_exists($file_path)) { //if the config doesn't exsist error::no_config($config); exit; } include_once $file_path; self::$items = array_merge(self::$items, ${$config}); }