示例#1
0
文件: load.php 项目: rigidus/ea
 function callClass($file, $class_name, $method)
 {
     if (file_exists($file)) {
         require_once $file;
         if (method_exists($class_name, $method)) {
             self::$log[] = $class_name . '::' . $method;
             call_user_func_array(array($class_name, $method), self::$params);
         }
     }
     self::$params = array();
 }