|I am working on a project that incorporates the YourCalendar class.|
As is, no events display unless the date is selected using the calendar. Is there a way to display "today's" events without user interaction?
|2007-03-01 12:28:09 - In reply to message 1 from Mark Drone|
no way to do this.
So, I easily added this functionality adding an 8th parameter to the constructor of the class: $startDay.
For your purpose you haven't to specify this parameter because by default it take the current day, and the events of the day will be displayed.
Note that I also added support for english language.
Just call $Calendar->setLanguage('english') and mounth names and day names will be in english.
Have a nice day.
|2007-03-04 03:57:23 - In reply to message 2 from Michele Castellucci|
|Chris Wherley came up with a way to make it work. On line 34 of YourCalendar.php, replace the following lines:|
With this block:
// *** Chris Wherley's code fix to allow the current date's events ***
// *** to be displayed without user interaction. Thanks Chris! ***
// *** End of code fix ***
It works great.
|2007-03-05 11:23:59 - In reply to message 3 from Mark Drone|
|Yes, that's the same way I've done it.|
With the difference that my method use a constructor parameter
instead of taking by default the current date.
Please download last version of the class