0
我想通過Zend Gdata從Picasa中獲取一些照片。這是我的代碼:在Yii框架中使用Zend Gdata
public function getAlbumFeed($albumName){
require_once('Zend/Loader.php');
spl_autoload_unregister(array('YiiBase','autoload'));
spl_autoload_register(array('Zend_Loader_Autoloader','autoload'));
spl_autoload_register(array('YiiBase','autoload'));
Zend_Loader::loadClass('Zend_Gdata');
Zend_Loader::loadClass('Zend_Gdata_ClientLogin');
Zend_Loader::loadClass('Zend_Gdata_Photos');
Zend_Loader::loadClass('Zend_Http_Client');
$svc=Zend_Gdata_Photos::AUTH_SERVICE_NAME;
$client=Zend_Gdata_ClientLogin::getHttpClient($this->email, $this->password, $svc);
$gphoto=new Zend_Gdata_Photos($client);
$query=$gphoto->newAlbumQuery();
$query->setUser('default');
$query->setAlbumName($albumName);
try{
$feed=$gphoto->getAlbumFeed($query);
}
catch(Zend_Gdata_App_Exception $e){
throw new HttpException("Your photos can't find", 404);
}
return $feed;
}
但是當我運行該腳本,我的網站拋出一個錯誤:
Fatal error: Class 'CExceptionEvent' not found in D:\xampp\htdocs\yii\framework\base\CApplication.php on line 703
你能幫我解決這個問題呢?非常感謝你。