/**
  * 文件导入
  */
 public static function import($className, $type)
 {
     static $_file = array();
     //特殊字符转换
     $type = strtolower($type);
     if (isset($_file[$className])) {
         return true;
     }
     //判断文件类型 1=>action 2=>model -1=>其他文件
     $filetype = $type == 'action' ? 1 : ($type == 'model' ? 2 : -1);
     $flag = false;
     if ($filetype == 1) {
         $flag = self::importAction($className);
     } else {
         if ($filetype == 2) {
             $flag = self::importModel($className);
         } else {
             $flag = self::importOther($className);
         }
     }
     if (!$flag) {
         exception::halt(FILE_NOTFOUND, '文件:' . $className . '未找到');
     }
 }