Skip to content

Instantly share code, notes, and snippets.

Created February 25, 2018 14:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/9f4ad078ffaa9f3bba6327b4a020f728 to your computer and use it in GitHub Desktop.
Save anonymous/9f4ad078ffaa9f3bba6327b4a020f728 to your computer and use it in GitHub Desktop.
<?php
foreach ($events as $event) {
$content = $this->Html->link($event->title, ['action' => 'view', $event->id]);
$this->Calendar->addRow($event->date, $content, ['class' => 'event']);
}
echo $this->Calendar->render();
?>
<?php if (!$this->Calendar->isCurrentMonth()) { ?>
<?php echo $this->Html->link(__('Jump to the current month') . '...', ['action' => 'index'])?>
<?php } ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment