Linking Calendar Dates

One of the most useful features of the calendar is the ability to link dates within the calendar to other pages.

This is done be creating a new class which extends the Calendar class. This new class should define a function getDateLink as below:

getDateLink($day, $month, $year)
Returns a string containing the URL for the date to link to, for the given day, month and year. Should return an empty string if no link should be displayed.

The complexity of the getDateLink function will depend on your application. Here are two examples, a simple one and a more complicated example.


Back to the Calendar page