/** * 加载 modules 的路径到 path * @return */ public static function modules(array $modules = NULL) { if ($modules != NULL) { self::$_modules = $modules; } $paths = array(); foreach (self::$_modules as $name => $path) { if (is_dir($path)) { $paths[] = realpath($path) . DIRECTORY_SEPARATOR; } else { continue; } } self::$_paths = $paths; }