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.

Archive

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

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

Calendar error


Reply

3 Posts   1958 Views

Avatar
Louie

9 June 2008 at 3:32am Community Member, 9 Posts

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

10 October 2008 at 12:34pm Community Member, 46 Posts

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

Avatar
Apophenian

10 October 2008 at 12:59pm Community Member, 46 Posts

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')) );
   }
}