... === false) { $appRoot = defined('XS_APP_ROOT') ? XS_APP_ROOT : XS_LIB_ROOT . '/../app'; } $file2 = $appRoot . '/' . $file . '.ini'; if (is_file($file2)) { $file = $file2; } } $this->loadIniFile($file); self::$_lastXS = $this;} 构造函...
...e)) { require_once $file; } else if (file_exists(XS_LIB_ROOT . DIRECTORY_SEPARATOR . $file)) { require_once XS_LIB_ROOT . DIRECTORY_SEPARATOR . $file; } if (!class_exists($name)) { throw new XSException('Undefined custom t...
...lass.php#L533 (显示) public static function autoload($name){ $file = XS_LIB_ROOT . '/' . $name . '.class.php'; if (file_exists($file)) { require_once $file; }} 智能加载类库文件 要求以 Name.class.php 命名并与本文件存放在同一目录, 如: XSTokenizerXxx.cla...
... === false) { $appRoot = defined('XS_APP_ROOT') ? XS_APP_ROOT : XS_LIB_ROOT . '/../app'; } $file2 = $appRoot . '/' . $file . '.ini'; if (is_file($file2)) { $file = $file2; } } $this->loadIniFile($file); self::$_lastXS = $this;} 构造函...
...e)) { require_once $file; } else if (file_exists(XS_LIB_ROOT . DIRECTORY_SEPARATOR . $file)) { require_once XS_LIB_ROOT . DIRECTORY_SEPARATOR . $file; } if (!class_exists($name)) { throw new XSException('Undefined custom t...