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