26 lines
354 B
PHP
26 lines
354 B
PHP
<?php
|
|
|
|
$year = date('Y');
|
|
$month = date('m');
|
|
|
|
echo json_encode(array(
|
|
|
|
array(
|
|
'id' => 1,
|
|
'title' => "Event1",
|
|
'start' => "$year-$month-10",
|
|
'url' => "http://yahoo.com/"
|
|
),
|
|
|
|
array(
|
|
'id' => 2,
|
|
'title' => "Event2",
|
|
'start' => "$year-$month-20",
|
|
'end' => "$year-$month-22",
|
|
'url' => "http://yahoo.com/"
|
|
)
|
|
|
|
));
|
|
|
|
?>
|