我阅读了IBM开发网站上的教程。http://www.ibm.com/developerworks/xml/library/x-googleclndr/#resources
我测试成功了。现在,我不知道如何在事件视图页面插入事件描述。基于下面的代码。只显示事件id,事件标题。有像event->description这样的参数吗?谢谢。
下面的代码来自示例代码文件view.php
foreach ($feed as $event) {
echo "<li>\n";
echo "<h2>" . stripslashes($event->title) . "</h2>\n";
echo stripslashes($event->summary) . " <br/>\n";
$id = substr($event->id, strrpos($event->id, '/')+1);
echo "<a href=\"edit.php?id=$id\">edit</a> | ";
echo "<a href=\"delete.php?id=$id\">delete</a> <br/>\n";
echo "</li>\n";
}发布于 2010-01-29 14:11:49
我想你要找的是$event->content。看一看GData挂历API。
https://stackoverflow.com/questions/2162305
复制相似问题