Utilize eZcomponents to ZendFramework project
- August 17th, 2010
- Posted in ZendFramework
- By stelio
- Write comment
Assuming that folder “library” is in your include php path.
Create folder EZ in your library folder, and extract all files from downloaded zip/tar.bz2 in to it.
in Your controller :
require_once “EZ/Base/src/base.php”;
$autoloader = Zend_Loader_Autoloader::getInstance();
$autoloader->pushAutoloader(array(‘ezcBase’, ‘autoload’), ‘ezc’);
Then test it :
$info = ezcSystemInfo::getInstance();
echo $info->cpuType, “\n”;
echo $info->cpuSpeed, “\n”;