0

I need the PEAR module, Services_Ebay in my ZF1 project. I'd like to put it and its dependencies in /library so the project is completely self-contained.

Is there a recommended way of doing this while using either ZF's or PEAR's autoloaders?

Brad303
  • 1,161
  • 8
  • 10

1 Answers1

0

Setup your include path with

set_include_path(get_include_path() . PATH_SEPARATOR . __DIR__ . '/library/');

That makes sure the require statements in the lib itself work. PEAR1 libraries don't have an autoloader, you need to require_once the first file you need.

cweiske
  • 30,033
  • 14
  • 133
  • 194