Zend Framework
The Zend Framework is a powerful package of PHP classes, which can boost your development time.
If you want to use it in BIGACE, you have to do three simple steps:
- Download the latest package
- Extract it to your BIGACE addon/ folder
- Customize the Include path
Download the latest package
Zend offers two packages, the Full and the Minimal package. I recommend starting with the Minimal package, but it depends on your needs.
Get them from the Zend Download pages.
Extract it to your addon/ folder
After downloading you have to extract the package and upload it to the /addon/ folder.
You need to have the following directory structure after uploading:
/addon/ZendFramework/library/Zend/...
Where … is the folder where the Zend base classes like Loader.php and all the class subdirectories are located.
Customize the Include path
In order for the Zend Framework to work properly, you have to change the Include path, so the Zend Loader can find the classes.
The common way is to set the include path in your script, which uses the Zend API.
set_include_path(get_include_path() . PATH_SEPARATOR . _BIGACE_DIR_ADDON . 'ZendFramework/library');
To load a Zend class, you would call:
set_include_path(get_include_path() . PATH_SEPARATOR . _BIGACE_DIR_ADDON . 'ZendFramework/library'); require_once('Zend/Loader.php'); Zend_Loader::loadClass('Zend_Gdata');
