-
-
Save anonymous/089010f80faf699e5482 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
$today = date('Y-m-d'); | |
$month = date('Y-m-d', strtotime($today .' +1 month')); | |
$Employees = Employee::get() | |
->filter('Birthdate:SmallerThan', $month) | |
->sort('Created DESC') | |
->limit(10); | |
return $this->renderWith('BirthdaysWidget', array( | |
'Employees' => $Employees | |
)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment