Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo

Calendar error


Go to End


3 Posts   2262 Views

Avatar
Louie

Community Member, 9 Posts

9 June 2008 at 3:32am

I'm using the calendar module, and when I created the function Calendar in my page.php I get this error, it left me stuck.

Fatal error: Access to undeclared static property: Calendar::$views in /home/coaadmu/public_html/coa/calendar/code/CalendarYear.php on line 8

Anyone out there having the same problem?

Avatar
Apophenian

Community Member, 46 Posts

10 October 2008 at 12:34pm

I am getting this problem - did you find a solution?

Avatar
Apophenian

Community Member, 46 Posts

10 October 2008 at 12:59pm

Ok, changing CalendarYear to something like this seemed to help:

class CalendarYear extends Calendar {
	
	// Constructor
	
	function __construct( $controller, $year = null ) {		
		parent::__construct( $controller, 'Year', array(new CalendarMonthView('Month')) );
	}
}