Welcome Guest, Not a member yet? Register   Sign In
Calendar class: multiple layouts on a single page?
#1

[eluser]schuytema[/eluser]
I use the calendar class to display little event calendars next to event lists... works fine... I also use the class to display a "master" calendar with links to the event dates... works fine...

But if I try to put both calendars on a page, the calendar class only uses the formatting from the first time I call the class... so all the calendars on the page look the same.

Each time I make a calendar to display, I set up the $prefs to describe the table layout I want... then load the library with the class... is it ignoring the second time I load the library? Is there a way I can reset the layout $prefs so that I can have multiple calendar layouts on a single page?

Thanks for any advice you have!

-Paul
#2

[eluser]slowgary[/eluser]
There's an initialize() method in the Calendar class, try calling:
Code:
$this->calendar->initialize($your_config_array);
#3

[eluser]schuytema[/eluser]
Works like a charm... thanks!

-P




Theme © iAndrew 2016 - Forum software by © MyBB