Wordpress and Zend

I want to do something with the Google Data API, specifically for contacts. The simplest method I've found so far is using Zend. The problem I am having is adding Zend framework. Does anyone know how to do this using WordPress?

thank

+2


source to share


4 answers


you can use "hardcoded" if you cannot configure autoload β†’

in / wp-content / themes / levitation / send.php insert in the first line: require_once 'your / path / to / zend / Zend / GData / ClientLogin.php';

The problem is that you have to go through all the errors and include the missing class in it (inside the classes included questions related to ...



Or in the main file (guess index.php) insert:

set_include_path(get_include_path() . PATH_SEPARATOR . 'your/path/to/zend/');
//for ZF below 1.8 
require_once 'Zend/Loader.php'; 
Zend_Loader::registerAutoload();
 //for ZF > 1.8 
require_once 'Zend/Loader/Autoloader.php';
Zend_Loader_Autoloader::setFallbackAutoloader(true);

      

+3


source


This should be pretty trivial.

Write down and test some bootstrap code that sets up ZF to autoload and verify that it works normally.



Stick to this code in the Wordpress plugin and tie it to the correct hooks in Wordpress.

+1


source


Try http://blueberryware.net/2008/09/04/wp-library-autoloader-plugin I think everything you need is there.

0


source


Make sure you call:

Zend_Loader::loadClass('Zend_Gdata_ClientLogin');

      

before using this class. And you have a developer key.

0


source







All Articles