PHP code example of kappa / calendar

1. Go to this page and download the library: Download kappa/calendar 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/ */

    

kappa / calendar example snippets


/**
 * @inject
 * @var \Kappa\Calendar\ICalendarControlFactory
 */
public $calendarControlFactory;

/**
 * @return \Kappa\Calendar\CalendarControl
 */
protected function createComponentCalendar()
{
	return $this->calendarControlFactory->create();
}

/**
 * @return \Kappa\Calendar\CalendarControl
 */
protected function createComponentCalendar()
{
	$calendar = $this->calendarControlFactory->create();
	$calendar->setTemplate('template.latte');

	return $calendar;
}