<?php
/**
 * This class is for the frontend view for an entire year.
 * 
 * It contains basically 4 rows of 3 months, for a total of 12
 * monthwidgets.
 * 
 * @package UNL_UCBCN_Frontend
 * @author Brett Bieber
 */
class UNL_UCBCN_Frontend_Year extends UNL_UCBCN
{
	public $year;
	public $monthwidgets = array();
	public $calendar;
	function __construct($y,$calendar)
	{
		$this->year = $y;
		$this->calendar = $calendar;
		$m = 1;
		for ($m=1;$m<=12;$m++) {
			$this->monthwidgets[] = new UNL_UCBCN_Frontend_MonthWidget($this->year,$m,$this->calendar);
		}
	}
}
?>
<?php
/**
 * This class is for the frontend view for an entire year.
 * 
 * It contains basically 4 rows of 3 months, for a total of 12
 * monthwidgets.
 * 
 * @package UNL_UCBCN_Frontend
 * @author Brett Bieber
 */

require_once 'UNL/UCBCN.php';
require_once 'UNL/UCBCN/Frontend/MonthWidget.php';

class UNL_UCBCN_Frontend_Year extends UNL_UCBCN
{
	public $year;
	public $monthwidgets = array();
	public $calendar;
	function __construct($y,$calendar)
	{
		$this->year = $y;
		$this->calendar = $calendar;
		$m = 1;
		for ($m=1;$m<=12;$m++) {
			$this->monthwidgets[] = new UNL_UCBCN_Frontend_MonthWidget($this->year,$m,$this->calendar);
		}
	}
}
?>
Add require statements to the year view... this fixes error with class monthwidget not found.
Add require statements to the year view... this fixes error with class monthwidget not found.

