コード例 #1
0
ファイル: Autoload.php プロジェクト: JaviereN/CuteMVC
 public static function setPaths($paths, $recursive = false)
 {
     if (count($paths) > 0) {
         foreach ($paths as $path) {
             if ($recursive == true) {
                 self::$_paths = array_merge(self::$_paths, self::listFolders($path));
             } else {
                 self::$_paths[] = $path;
             }
         }
     } else {
         self::$_paths[] = $paths;
     }
 }
コード例 #2
0
ファイル: autoloader.class.php プロジェクト: briansandall/v6
 /**
  * Reload all the paths from the include_path
  * Should not need to run unless you add more paths to the include_path
  */
 public static function reloadPaths()
 {
     self::$_paths = explode(CC_PS, ini_get('include_path'));
 }