incubator-zeta-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Grobmeier <grobme...@gmail.com>
Subject [zeta-users] Autoloading classes
Date Wed, 06 Oct 2010 15:14:04 GMT
Hello guys,

I am confused by the autoloader which i tried today. Maybe you can
give me some kind of a starter.

My Base package is in the folder:

/lib/zetacomponents/Base/src

then I wrote to my /index.php:

require_once ("lib/zetacomponents/Base/src/base.php");

function __autoload($class) {
ezcBase::autoload( $class );
}

But it fails loading with this path:
\lib\zetacomponents\Base\src/../../autoload/base_file_autoload.php

I tried to setWorkingDirectory but it also fails.

So, any pointers what I am missing?
I am using the SVN trunk version

Cheers,
Christian

Mime
View raw message