public static function getClassPath($className, $extension = '.php')
    {
        $prefix = $className = self::camelCaseToLowerNamespace(str_replace('_', '\\', $className));

        while (false !== $position = strrpos($prefix, '\\')) {
            $prefix = substr($prefix, 0, $position);
            $alias = self::getAlias($prefix);

            if (!$alias) {
                continue;
            }

            $path = $alias.'\\'.substr($className, mb_strlen($prefix) + 1);
            $absolutePath = str_replace('\\', DIRECTORY_SEPARATOR, $path).$extension;

            if (is_readable($absolutePath)) {
                return $absolutePath;
            }
        }

        return false;
    }
public static function getClassPath($className, $extension = '.php')
    {
        $prefix = $className = self::camelCaseToLowerNamespace(str_replace('_', '\\', $className));

        while (false !== $position = strrpos($prefix, '\\')) {
            $prefix = substr($prefix, 0, $position);
            $alias = self::getAlias($prefix);

            if (!$alias) {
                continue;
            }

            $path = $alias.'\\'.substr($className, mb_strlen($prefix) + 1);
            $absolutePath = str_replace('\\', DIRECTORY_SEPARATOR, $path).$extension;

            if (is_readable($absolutePath)) {
                return $absolutePath;
            }
        }

        return false;
    }
public static function getClassPath ( $ className , $ extension = '.php' ) { $ prefix = $ className = self :: camelCaseToLowerNamespace ( str_replace ( '_' , '\\' , $ className ) ) ; while ( false !== $ position = strrpos ( $ prefix , '\\' ) ) { $ prefix = substr ( $ prefix , 0 , $ position ) ; $ alias = self :: getAlias ( $ prefix ) ; if ( ! $ alias ) { continue ; } $ path = $ alias . '\\' . substr ( $ className , mb_strlen ( $ prefix ) + 1 ) ; $ absolutePath = str_replace ( '\\' , DIRECTORY_SEPARATOR , $ path ) . $ extension ; if ( is_readable ( $ absolutePath ) ) { return $ absolutePath ; } } return false ; }
Get class path

@access public

@param string $className search class name
@param string $extension extension of class

@return string
@static
Get class path