Zend Framework
Rob Loach - December 4, 2007 - 23:04
The Zend Framework is a powerful open source web application framework for developing PHP 5 web applications. The Zend Framework module is a Drupal API module that facilitates the installation and management of the Zend Framework, making sure it is properly accessible to other Drupal modules.
Core Modules
- Zend_Mail
- Lets Drupal use Zend Framework's Zend_Mail functionality when sending emails.
External Modules
Installation
- Extract the Zend Framework module to sites/all/modules, just like you would with any other module.
- Visit admin/build/modules and enable the Zend Framework module.
- At this point, admin/logs/status will report whether or not the Zend Framework is installed or not.
- If the Zend Framework is not installed, download it (new BSD-license) and extract it so that it reads sites/all/modules/zend/library/Zend.
- Visit admin/settings/zend and put in the parent directory to the Zend folder (sites/all/modules/zend/library).
- See admin/logs/status to ensure it is installed correctly.
API
To make use of a class within the Zend Framework, you call the zend_initialize function, which returns true or false depending if the given class was successfully loaded...
<?php
if (zend_initialize('Zend_Search_Lucene')) {
$index = Zend_Search_Lucene::open('/data/my_index');
$index->find($query);
}
else {
drupal_set_message(t('Zend Lucene Search initialization failed.'));
}
?>Releases
| Development snapshots | Date | Size | Links | Status | |
|---|---|---|---|---|---|
| 6.x-1.x-dev | 2008-Jun-02 | 8.94 KB | Download · Release notes | Development snapshot | |
| 5.x-1.x-dev | 2008-Oct-17 | 9.05 KB | Download · Release notes | Development snapshot | |

