Exemple #1
0
 /**
  * Load a file that defines model class
  * 
  * @param string $className The name of the controller class to read
  * @param string $subdir
  * @return boolean
  */
 public static function loadModel($className, $subdir = '')
 {
     $path = PathManager::getModelDirectory();
     if ($subdir != '') {
         $path .= '/' . trim($subdir, '/');
     }
     $res = self::load($className, $path, false, false);
     return $res;
 }