Hi,

It looks like you're following the Calendar PHP development guide,
which is currently written for the older (0.9.x) version of
Zend_Gdata.  The Calendar extension isn't yet a part of core
Zend_Gdata in the new 1.0.0 RC1 release, which is why you are getting
that error.  You have a couple of options -- you can use the previous
stable release of the Zend Framework, or include both the core and
incubator parts of the new Zend Framework into your project.

You can find a snapshot of the previous stable release of the
framework here:

http://framework.zend.com/snapshots/ZendFramework-20070526-5003-en.tar.gz

This will allow you to follow the current development guide.  If you
want to include the incubator parts of the Zend Framework into your
project instead, add both the incubator and core libraries to your PHP
include path.  That will allow you to use the new (although not as
well tested) Calendar extension.

-- Gordy



On Jun 1, 3:00 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> I am trying to get the PHP API to work, but I keep getting this error:
>
> Fatal error: Uncaught exception 'Zend_Exception' with message 'File
> "Calendar.php" was not found' in /home/custom/public_html/calendar/
> Zend/Loader.php:155 Stack trace: #0 /home/custom/public_html/calendar/
> Zend/Loader.php(87): Zend_Loader::loadFile('Calendar.php', Array,
> true) #1 /home/custom/public_html/calendar/test.php(11):
> Zend_Loader::loadClass('Zend_Gdata_Cale...') #2 {main} thrown in /home/
> custom/public_html/calendar/Zend/Loader.php on line 155
>
> Looking through all the files in the API download, I do not see a file
> named Calendar.php anywhere in the downloaded files.
>
> Here is my sourcecode.  Someone please help.   THanks
>
> <?php
> // includes the Zend Framework library and loads the necessary classes
> $D = DIRECTORY_SEPARATOR;
> set_include_path(
>     dirname(__FILE__) . "{$D}..{$D}..{$D}..{$D}library"
>     . PATH_SEPARATOR . get_include_path());
> require_once 'Zend/Loader.php';
> Zend_Loader::loadClass('Zend_Gdata');
> Zend_Loader::loadClass('Zend_Gdata_AuthSub');
> Zend_Loader::loadClass('Zend_Gdata_ClientLogin');
> Zend_Loader::loadClass('Zend_Gdata_Calendar');
> Zend_Loader::loadClass('Zend_Feed_EntryAtom');
> Zend_Loader::loadClass('Zend_Http_Client');
>
> // Enter your Google account credentials
> $email = '[EMAIL PROTECTED]';
> $passwd = xxxxxxxxxxxx';
> $client = Zend_Gdata_ClientLogin::getHttpClient($email, $passwd,
> 'cl');
>
> $cal = new Zend_Gdata_Calendar($client);
>
> function outputCalendarList($client)
> {
>   $gdataCal = new Zend_Gdata_Calendar($client);
>   $calFeed = $gdataCal->getCalendarListFeed();
>   echo '<h1>' . $calFeed->title() . '</h1>';
>   echo '<ul>';
>   foreach ($calFeed as $calendar) {
>     echo '<li>' . $calendar->title() . '</li>';
>   }
>   echo '</ul>';
>
> }
>
> outputCalendarList();
>
> ?>


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Calendar Data API" group.
To post to this group, send email to 
[email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-calendar-help-dataapi?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to