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] Re: Autoloading classes
Date Wed, 06 Oct 2010 15:18:45 GMT
wow got it. Didn see the setup-env script

On Wed, Oct 6, 2010 at 5:14 PM, Christian Grobmeier <grobmeier@gmail.com> wrote:
> 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