예제 #1
0
파일: loader.php 프로젝트: 2626suke/curryfw
 /**
  * Load a file that defines the library class
  * 
  * @param string $className The name of the controller library to read
  * @param string $subdir
  * @return boolean
  */
 public static function loadLibrary($className, $subdir = null)
 {
     $path = PathManager::getLibraryDirectory();
     if ($subdir != '') {
         $path .= '/' . trim($subdir, '/');
     }
     $res = self::load($className, $path, false, false);
     return $res;
 }