alkradev wrote on 2014-06-30 15:08:30
Don't complicate things.
It is an easy solution and to give it in an example:
$myCalendar->dateAllow(date("Y-m-d"), '2045-05-01', false);
date("Y-m-d") sets the current date and is used as the starting date on the calendar. Then you can expand it up to whatever you want (in this example up to year 2045, 1st of May).