1. Go to this page and download the library: Download mtangoo/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/ */
mtangoo / yii2-fullcalendar example snippets
use hosannahighertech\calendar\Calendar;
use hosannahighertech\calendar\models\Event;
$events = [];
//Testing
$items = [
[
'id' => 1,
'title' => 'Event 1',
'start' => date('Y-m-d\TH:i:s\Z'),
'nonstandard' => [
'field1' => 'Something I want to be
<?= Calendar::widget([
'options' => [
'lang' => 'de',
//... more options to be defined here!
],
'events' => Url::to(['/timetrack/default/jsoncalendar'])
]);