1
다음 코드가 있습니다."호출 대상 ... getCalendarListFeed()가 아닌 객체"오류의 원인은 무엇입니까?
<?php
require_once('Zend/Loader.php');
$classes = array('Zend_Gdata','Zend_Gdata_Query','Zend_Gdata_ClientLogin','Zend_Gdata_Calendar');
foreach($classes as $class) {
Zend_Loader::loadClass($class);
}
$user = '[email protected]';
$pass = 'MyPassword';
$service = Zend_Gdata_Calendar::AUTH_SERVICE_NAME;
$client = Zend_Gdata_ClientLogin::getHttpClient($user,$pass,$service);
$service = $Zend_Gdata_Calendar[$client];
$listFeed = $service->getCalendarListFeed();
이 코드는 Call to a member function getCalendarListFeed() on a non-object in MyCal.php on line 13
를 반환합니다.
이 오류의 원인은 무엇입니까?