Now you're ready to start using the calendar package in your application.
You can use the generate method to generate a calendar.
// Generate a calendar for the current month and yearCalendar::generate();
// Generate a calendar for the specified year and monthCalendar::generate(2012, 6);
// Add an array of events as the third parameter to add them to the calendar, // keys should be the days of the month.$data = array(
3 => 'http://example.com/news/article/2006/03/',
7 => 'http://example.com/news/article/2006/07/',
13 => 'http://example.com/news/article/2006/13/',
26 => 'http://example.com/news/article/2006/26/'
Calendar::generate(2006, 6, $data);
There are a few config variables you can set to change the layout of the calendar:
A string containing your calendar template. See the template section below.
A Unix timestamp corresponding to the current time.
Any week day (sunday, monday, tuesday, etc.)
Sets the day of the week the calendar should start on.
Determines what version of the month name to use in the header. long = January, short = Jan.
long, short, abr
Determines what version of the weekday names to use in the column headers. long = Sunday, short = Sun, abr = Su.
Determines whether to display links allowing you to toggle to next/previous months. See information on this feature below.
Default the next/prev link will use a query string, if you set this var to true, URI segments will be used
You can set these values using the initialize method