Created
February 25, 2018 14:23
-
-
Save anonymous/9f4ad078ffaa9f3bba6327b4a020f728 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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