1. Go to this page and download the library: Download jaxwifi/yii2-fullcalendar library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
jaxwifi / yii2-fullcalendar example snippets
$events = array();
//Testing
$Event = new \yii2-fullcalendar\models\Event();
$Event->id = 1;
$Event->title = 'Testing';
$Event->start = date('Y-m-d\TH:i:s\Z');
$Event->nonstandard = [
'field1' => 'Something I want to be ('tomorrow 6am'));
$events[] = $Event;
<?= yii2-fullcalendar\yii2-fullcalendar::widget([
'options' => [
'lang' => 'de',
//... more options to be defined here!
],
'events' => Url::to(['/timetrack/default/jsoncalendar'])
]);