1) ? implode('.', array_slice($segments, 1)) : null; return array($segments[0], $key); } /** * Load all of the configuration items from a module configuration file. * * @param string $file * @return bool */ protected static function load($file) { if (isset(static::$items[$file])) return true; $config = array(); foreach (static::$paths as $directory) { if (file_exists($path = $directory.$file.EXT)) { $config = array_merge($config, require $path); } } if (count($config) > 0) { static::$items[$file] = $config; } return isset(static::$items[$file]); } }