Adding 3rd party PHP classes to Zend Framework
I am new to Zend Framework. I am trying to integrate TCPDF with my controller so that I can generate PDFs on the fly. I'd like to put the entire TCPDF folder in library/tcpf (instead of the public folder where it is now) and have the application run but I dont seem to be able to get Zend to see it a开发者_C百科nd use it. I read through the loader documentation but I'm still confused. Help please.
Regards, Joe Chin
I'm not sure if Zend_Loader will help you too much here as TCPDF appears to only have one class and does not follow the PEAR style class naming conventions. So if I were you I'd extract it all into library/tcpf as you suggested and then just require in library/tcpdf/tcpdf.php when you need it.
精彩评论