PHP code example of tecnocen / yii2-fullcalendar
1. Go to this page and download the library: Download tecnocen/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/ */
tecnocen / yii2-fullcalendar example snippets
use tecnocen\fullcalendar\widgets\Fullcalendar;
echo Fullcalendar::widget([
// 'lang' => 'es',
'options' => [
// HTML attributes for the container.
// the `tag` option is specially handled as the HTML tag name
],
'clientOptions' => [
// JS Options to be passed to the `calendar()` plugin.
// see http://fullcalendar.com/#Documentation/Options
],
'clientEvents' => [
// JS Events for the `calendar()` plugin.
// see http://fullcalendar.com/#Documentation/Events
]
]);
echo Fullcalendar::widget([
'options' => ['id' => 'es-calendar'],
'lang' => 'es',
]);