Hello all,

I have my zetacomponents stored at:
lib/zetacomponents/

in this folder is:
lib/zetacomponents/autoload with autoload php files
lib/zetacomponents/Base
lib/zetacomponents/UserInput

Then I added this to my autoload:

$options = new ezcBaseAutoloadOptions;
                $options->debug = true;
                ezcBase::setOptions( $options );
                ezcBase::setWorkingDirectory('lib/zetacomponents');
                ezcBase::autoload( $class );

My components look like:
Base/src/*.php

For some reasons classloading works with Base.
But for UserInput i needed to change at line 383 to something like this:

$a = explode( '/', $file, 3 );
if(sizeof($a) == 3) {
                $file = $a[0]. '/src/' . $a[1]. "/" . $a[2];
} else {
                $file = $a[0]. '/src/' . $a[1];
}

to make this work. This feels strange to me. I guess I have done
something bad with pathes. Or is it a bug in the classloader classes?

Best regards,
Christian

Reply via email to