Autoload.php
/**
     * Register a namespace base dir for autoloading.
     *
     * @param string $namespace
     * @param string $dir
     * @static
     * @access public
     * @return void
     */
Register a namespace base dir for autoloading.
Register a namespace base dir for autoloading .
static public function registerBase($namespace, $dir)
    {
        $nameArr = explode('\\', $namespace);
        $currentDir = &self::$_baseDirs;
        foreach ($nameArr as $name) {
            if (!isset($currentDir[$name])) {
                $currentDir[$name] = array();
            }
            $currentDir = &$currentDir[$name];
        }
        $currentDir = $dir;
    }
static public function registerBase ( $ namespace , $ dir ) { $ nameArr = explode ( '\\' , $ namespace ) ; $ currentDir = & self :: $ _baseDirs ; foreach ( $ nameArr as $ name ) { if ( ! isset ( $ currentDir [ $ name ] ) ) { $ currentDir [ $ name ] = array ( ) ; } $ currentDir = & $ currentDir [ $ name ] ; } $ currentDir = $ dir ; }
Register a namespace base dir for autoloading.
Register a namespace base dir for autoloading .