Exemple #1
0
 /**
  * Load a file that defines the view script class
  *
  * @param string $className The name of the view script class to read
  * @param string $subdir View script subdirectory that contains the file
  * @return boolean
  */
 public static function loadViewScript($className, $subdir = '')
 {
     // verify the existence of a file
     $path = PathManager::getViewScriptDirectory();
     if ($subdir != '') {
         $path .= '/' . trim($subdir, '/');
     }
     $res = self::load($className, $path, false, false);
     return $res;
 }