Sample Applications
Rob Loach - December 5, 2007 - 00:01
| Project: | Zend Framework |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | task |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
Create a sample application that uses the Zend Framework and Drupal.

#1
I am writing a parser add on module for http://drupal.org/project/feedapi module using Zend Framework. Although my module tries to handle installation of Zend Framework I would love to change it so that Zend Framework functionality comes from your module.
Since Zend Framework requires its library path to be available in the PHP include_path I have written two functions that alter include_path calling set_include_path() and restore_include_path().
I have put a folder named "library" under my modules directory. That folder contains the Zend Framework's "Zend" folder.
My modules functions are like followings:
<?php
function _parser_zend_feed_set_include_path() {
$include_path = get_include_path();
$include_path .= PATH_SEPARATOR . drupal_get_path('module', 'parser_zend_feed') .'/library';
set_include_path($include_path);
}
function _parser_zend_feed_restore_include_path() {
restore_include_path();
}
?>
My modules directory structure is like following:
parser_zend_feed|---->library
|--->Zend
|-->Version.php
#2
That's a great idea! I'll stick it in today sometime.
#3
Do you have any idea for a module to use the Zend Framework?
#4
There should be at least two modules provided with the Zend Framework module that demonstrate use of its feature set.
Ideas:
drupal_mail- #205511#5
REST Server created.
Another idea:
Use Zend_Gdata to display a user's latest saved Google Documents in their profile. There's a lot we could do with Gdata....
#6
http://drupal.org/project/zend_feed