Hi, I have a problem with the Events Calendar module. When I try to add it in other pages, I get this error:
<br >
<br >Fatal error: Call to a member function format() on a non-object in /html/event_calendar/code/CalendarUI.class.php on line 10
<br >
<br >I added this:
<br >
<br >
function GlobalCalendarWidget()
<br >{
<br >$calendarPage = DataObject::get_one("Calendar"); // If you have multiple calendars, specify an id or url segment.
<br >return new CalendarWidget($calendarPage);
<br >}
<br >
<br >In my Page.php in the
<br >
<br >class Page_Controller extends ContentController
<br >
<br >and
<br >
<br >$GlobalCalendarWidget
<br >
<br >in my Page.ss
<br >
<br >Did I miss something somewhere? On the events page (without the part added to Page.php) the calendar widget appears correctly...
<br >
<br >
<br >My second question is about the language of the module. I tried to put it in french but nothing changes... in my _config.php file I have this line
<br >
Calendar::set_param('language','fr');
<br >I tried fr in caps and nothing changed...
<br >
<br >Thank you,
<br >Gabriel
<br >
<br >