incubator-zeta-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Grobmeier <grobme...@gmail.com>
Subject Re: [zeta-users] Confusion with classloader
Date Thu, 07 Oct 2010 11:28:48 GMT
Hi

> Did you try without calling setWorkingDirectory() ?

yes (as above):

ezcBase::setWorkingDirectory('lib/zetacomponents');
ezcBase::autoload( $class );


> What is your autoload function code? is it:
>
> function __autoload( $class ) {
>    ezcBase::autoload( $class ) or die( "Couldn't load $class" );
> }

Basically yes, just with setWorking Directory and without die.
Like

function __autoload( $class ) {
if(substr($class,0,3) == "ezc") {
ezcBase::setWorkingDirectory('lib/zetacomponents');
ezcBase::autoload( $class );
return;
}
// other stuff
}

Mime
View raw message