Zend Framework in WordPress

I set in this blog some articles related to WordPress programming. Nothing will change this time, since now I will present how to integrate Zend Framework into WP. Zend Framework (ZF) is is an open sourceobject-oriented web application framework implemented in PHP 5. Zend Technologies is a company behind the (ZF) framework and also on of the co founders of  PHP. Zend Framework become the industry standard for developing the PHP applications. For instance Google use it. It is easy to add Zend Framework support to the WordPress just by editing the functions.php file and adding the Zend Library (from the Zend Framework package). However, it is recommended to enable/disable this kind of the support by creating the plugin and enabling/disabling the plugin.

Plugin Name: Zend_Framework integration
Description: Zend_Framework integration
Author: author
Version: 1.0
Text Domain: Zend_Framework integration
	implode(PATH_SEPARATOR, array(
require_once realpath(__DIR__.'/lib/Zend/Loader/Autoloader.php');
$autoloader = Zend_Loader_Autoloader::getInstance();

In the previous example you need to create the folder under the WordPress plugin folder and simple add the file with the same name as the foldername.php. You can also check this plugin http://wordpress.org/extend/plugins/zend-framework/ PS: You can use php.ini file to set the include path this way:

include_path = ".:/var/www/html/ZendGdata/library/" 

instead of


tags: & category: -