Matthew Weier O'Phinney-3 wrote:
>
> I can't be certain, as I don't know the DOMPDF code, but you should be
> able to load it as an additional spl_autoload handler:
>
> require_once 'Zend/Loader.php';
> require_once 'path/to/file/containing/DOMPDF_autoload...';
> Zend_Loader::registerAutoload();
> spl_autoload_register('DOMPDF_autoload');
>
> spl_autoload() is an improvement over __autoload() precisely for
> situations like this, where you need to mix and match libraries that
> have their own autoloading logic, and is why we adopted it in ZF.
>
> --
> Matthew Weier O'Phinney
> PHP Developer | [EMAIL PROTECTED]
> Zend - The PHP Company | http://www.zend.com/
>
>
Thank you, Matthew! This worked perfectly. I had the registerAutoload in the
bootstrap file, and the require_once was in place, so all I had to do was
add the spl_autoload_register(), et voila!
Zend Framework is terrific. So is DOMPDF--might be a good model for redesign
of Zend_PDF for version 1.5.
Again, thanks. Saved my bacon!
ken
--
View this message in context:
http://www.nabble.com/loading-non-ZF-classes-using-autoloader-tp14705760s16154p14718099.html
Sent from the Zend Framework mailing list archive at Nabble.com.