Need a way to get the Zend Framework path so it's easy to include libraries.

Would also be neat to have:

zend_include('Gdata.php');

... To include Zend/Gdata.php cleanly.

Comments

robloach’s picture

Status: Active » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

mustafau’s picture

Status: Closed (fixed) » Active

All includes inside Zend Framework start with "Zend/...".

I think zend_include('Zend/Gdata.php') is more meaningful.

Additionally a function like zend_load('Zend_Gdata') might be a good option.

robloach’s picture

Status: Active » Fixed

Fixed by 92034 and 92032 for both Drupal 5 and Drupal 6.

It's using zend_include('Zend/Gdata.php') and returns TRUE if it works. Mind testing a bit to make sure it's good?

Also, zend_load is a good idea, but hook_load would conflict. Maybe zend_initialize?

mustafau’s picture

zend_loader()?

mustafau’s picture

zend_initialize() may make use of the Zend_Loader class.

require_once 'Zend/Loader.php';
Zend_Loader::loadClass($class); 
robloach’s picture

Status: Fixed » Active

Ahhh, very cool!

robloach’s picture

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.