fullcalendar/demos/json-events.php

26 lines
358 B
PHP
Raw Permalink Normal View History

2009-04-26 06:43:27 +02:00
<?php
$year = date('Y');
$month = date('m');
echo json_encode(array(
array(
2009-09-21 12:11:08 +02:00
'id' => 111,
2009-04-26 06:43:27 +02:00
'title' => "Event1",
'start' => "$year-$month-10",
'url' => "http://yahoo.com/"
),
array(
2009-09-21 12:11:08 +02:00
'id' => 222,
2009-04-26 06:43:27 +02:00
'title' => "Event2",
'start' => "$year-$month-20",
'end' => "$year-$month-22",
'url' => "http://yahoo.com/"
)
));
?>