kappa / calendar
Component for generation calendar prepared for next work with it
v1.0.0
2014-06-07 08:53 UTC
Requires
- php: >= 5.3.0
- nette/application: ~2.2
- nette/di: ~2.2
Requires (Dev)
- kappa/tester: ~1.1
- nette/nette: ~2.2
This package is auto-updated.
Last update: 2024-11-04 19:01:33 UTC
README
Component for generation calendar prepared for next work with it
Requirements:
- PHP 5.3 or higher
- Composer
- nette/application 2.2 or higher
- nette/di 2.2 or higher
Installation
The best way to install kappa/calendar is using Composer:
$ composer require kappa/calendar:@dev
And now you have to register the extensions in config.neon
extensions: - Kappa\Calendar\CalendarExtension
Usages
You can use default component with default or custom template
/** * @inject * @var \Kappa\Calendar\ICalendarControlFactory */ public $calendarControlFactory; /** * @return \Kappa\Calendar\CalendarControl */ protected function createComponentCalendar() { return $this->calendarControlFactory->create(); }
with custom template
/** * @return \Kappa\Calendar\CalendarControl */ protected function createComponentCalendar() { $calendar = $this->calendarControlFactory->create(); $calendar->setTemplate('template.latte'); return $calendar; }
or in template
{control calendar 'template.latte'}
In template will be $calendar
variable contains Calendar object for more info please see into
default template