It took me a while to figure this out, but you must use a system link or a php path or alias to direct Zend to it's installation directory in newer versions. It does not use a relative path.

I used cd sites/all/libraries/Zend; ln -s $home/websites/module.dev/sites/all/libraries/Zend where you must change directory and then add a link.

You can find more about Zend's link requirements here: http://framework.zend.com/manual/en/learning.quickstart.create-project.html

Another quick solution I used temporarily to develop my module was to place the Zend library in the root folder so that it was in both ./ and ./sites/all/libraries/Zend

This should be updated in the documentation. Newer versions are non-functional and will immediate error out because they have the wrong links. It would be nice if we could implement something in the module to meet or change this requirement without user intervention.

Zend Framework 1.11.0 Minimal (Released 2010-11-02); Drupal Core 6.19 ; libraries 6.x-1.0-alpha1

Comments

brassington’s picture

Scratch the system link idea. I thought I had it working, but now I'm back to putting the Zend framework back in the site root.

carlmcdade’s picture

The installation instructions on setting the correct path are incomplete. Using the 1.x dev version the path that works is :

sites\all\libraries\Zend\library

This takes in account the default Drupal configuration for installing libraries. ie. "sites\all\libraries" then adds the Zend path to the actual Zend directory that contains the Loader.php "\Zend\library". Caveat: as of this writing the 2.x dev version does not have complete Drupal code so the admin path and forms do not show.