I would like to use DOMPDF with Zend Framework. DOMPDF has its own autoloader
(called "DOMPDF_autoload") that loads necessary class files so the user can
instantiate the main DOMPDF class (called, yes, you guessed it, DOMPDF). 

I have the DOMPDF files in a directory called "library" at the root of my ZF
application tree. 

I am able to use require_once to load the configuration file for DOMPDF--the
config file is found and no errors occur. However, when I try to "new" a
DOMPDF instance, ZF complains that "Class 'DOMPDF' was not found in" my
controller. 

I believe that to make DOMPDF work, I need to use the DOMPDF autoloader, but
I can't figure out how to do this within ZF. 

FYI, in my index.php bootstrap file, I am using
Zend_Loader::registerAutoload() so that I don't have to manually load ZF
classes before using them.

Any help is greatly appreciated. Thank you!

ken
-- 
View this message in context: 
http://www.nabble.com/loading-non-ZF-classes-using-autoloader-tp14705760s16154p14705760.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to