With our calendar library in place, we now need to look at how a controller would leverage the power of the library to generate a particular month, and display it to the user.
To actually display a calendar, we need some code which:
We also need a template file with our 42 boxes in a calendar grid.
The following code can be used to generate a calendar (this isn't for a specific feature, you can find the code in the
testOutput() method in the calendar controller):
// require the class require_once( FRAMEWORK_PATH . 'lib/calendar/calendar.class.php' ); // set the default month ...