How to load Zend Framework in WordPress 3 plugin


Loading Zend Framework into WordPress 3 plugin is quite easy. You can download latest ZendFramework on http://framework.zend.com/download/latest . To use Zend Framework with our plugin, extract it on inside plugin folder.

1
2
3
4
set_include_path(get_include_path() . PATH_SEPARATOR . dirname(__FILE__) );

require_once ‘Zend/Loader/Autoloader.php’;
Zend_Loader_Autoloader::getInstance();

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.