Benjamin Eberlei pisze:
> Hello,
> 
> ezc_bootstrap.php uses the __autoload function, which is overwritten when 
> additionally be used with spl_autoload_register, which probably Propel is 
> doing.
> 
> You musteither  register both autoloading facilities with the function 
> spl_autoload_register, to have both autloadings working, or you have to build 
> your own __autoload function and depending on the beginning of the classname 
> (strpos($className, 'ezc') === 0) call either the ezc autoloader or the 
> propel 
> one.
> 
> i hope that helps,
> Benjamin


Hi again,

Yes, spl eventually worked. I must have messed something upthe first time.

<?php
(..)
require_once 'propel/Propel.php';
Propel::init( '/var/www/myapp/model/conf/myapp-conf.php' );
require_once 'ezc/Base/base.php';
spl_autoload_register( array( 'ezcBase', 'autoload' ) );
(..)
?>

Thanks a lot!
Cheers,
Piotrek
-- 
Components mailing list
Components@lists.ez.no
http://lists.ez.no/mailman/listinfo/components

Reply via email to