Zend Framework

Rob Loach - December 4, 2007 - 23:04
The Zend Framework Logo

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

  1. Extract the Zend Framework module to sites/all/modules, just like you would with any other module.
  2. Visit admin/build/modules and enable the Zend Framework module.
  3. At this point, admin/logs/status will report whether or not the Zend Framework is installed or not.
  4. 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.
  5. Visit admin/settings/zend and put in the parent directory to the Zend folder (sites/all/modules/zend/library).
  6. 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 snapshotsDateSizeLinksStatus
6.x-1.x-dev2008-Jun-018.94 KBDevelopment snapshotDevelopment snapshots are automatically regenerated and their contents can frequently change, so they are not recommended for production use.
5.x-1.x-dev2008-Jul-259.03 KBDevelopment snapshotDevelopment snapshots are automatically regenerated and their contents can frequently change, so they are not recommended for production use.
 
 

Drupal is a registered trademark of Dries Buytaert.