incubator-zeta-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Derick Rethans <apa...@derickrethans.nl>
Subject Re: [zeta-users] Confusion with classloader
Date Thu, 07 Oct 2010 11:31:34 GMT
On Thu, 7 Oct 2010, Christian Grobmeier wrote:

> 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');

Don't use setWorkingDirectory, it's for unit testing only.
The only thing you really have to do is:

require '/home/derick/dev/ezcomponents/trunk/Base/src/ezc_bootstrap.php';
(Adjusting the path).

Derick

-- 
http://derickrethans.nl | http://xdebug.org
Like Xdebug? Consider a donation: http://xdebug.org/donate.php
twitter: @derickr and @xdebug

Mime
View raw message