【发布时间】:2013-12-29 10:19:52
【问题描述】:
当我在 PHP 中初始化 Google Calendar API 时,我遇到了 Zend_Loader (1.10.8) 的一些错误。这是我的代码:
\Zend_Loader::loadClass('Zend_Gdata');
\Zend_Loader::loadClass('Zend_Gdata_ClientLogin');
\Zend_Loader::loadClass('Zend_Gdata_Calendar');
$this->_service = \Zend_Gdata_Calendar::AUTH_SERVICE_NAME;
$this->_client = \Zend_Gdata_ClientLogin::getHttpClient(USER, PASS, $this->_service);
$this->_client->setConfig(array('keepalive' => true));
$this->_service = new \Zend_Gdata_Calendar($this->_client);
$this->defaultQuery = $this->_service->newEventQuery();
最后一行给出以下错误:
Warning: include_once(Zend/Gdata/Calendar/Extension/EventQuery.php): failed to open stream: No such file or directory
Warning: include_once(): Failed opening 'Zend/Gdata/Calendar/Extension/EventQuery.php' for inclusion
这不会破坏任何功能,但我不知道如何解决这些错误。我的 EventQuery.php 文件位于“/Zend/Gdata/Calendar/EventQuery.php”中,而不是它在错误中使用的路径。有什么想法吗?
【问题讨论】:
标签: php zend-framework google-calendar-api