Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace Components\Front;
- final class Calendar extends Nette\Application\UI\Control
- {
- /**
- * Month of calendar.
- * @var int
- */
- public $month;
- /**
- * Year of calendar.
- * @var int
- */
- public $year;
- public function __construct(Nette\ComponentModel\IContainer $parent = NULL, $name = NULL)
- {
- $this->year = date("Y");
- $this->month = date("m");
- parent::_construct($parent, $name);
- }
- public function render()
- {
- $template = parent::createTemplate();
- $template->setFile(__DIR__ . '/calendar.latte');
- $template->render;
- }
- /**
- * Reserver a date to appointment.
- *
- * @param string $date
- */
- public function handleSelect($date)
- {
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment