ZendLoader

Filepath: phork/php/ext/zend/ZendLoader.class.php

The ZendLoader class is a small wrapper for loading components from the Zend Framework. It requires a configuration file named zend.config.php which defines where the Zend Framework is installed. The standard location is phork/php/ext/zend/Zend/.


Example Usage

//include the zend loader
AppLoader::includeClass('php/ext/zend/', 'ZendLoader');

//include and instantiate the zend rest client
ZendLoader::includeClass('Zend_Rest_Client');
$objRest = new Zend_Rest_Client();
 

Example Config

//sets the absolute path to the Zend core
$arrConfig['ZendBase'] = AppConfig::get('InstallDir') . 'php/ext/zend';