/** * 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; }