Welcome Guest, Not a member yet? Register   Sign In
Using Multiple Calendars
#1

[eluser]kevthedude[/eluser]
Hey guys,

Pretty much the issue I'm having is generating two calendars to be displayed on one page. Not exactly how it appears on the site, but in terms of code that's how it's being done. Now, the problem is that I'm using the calendar class which requires you to load the library passing the prefs with it. I need these two calendars to have a different set of prefs. For some reason, however, the second calendar is always generated with the prefs of the first even though I have passed through a different set of prefs. I've unset the $this->calendar and $this->_ci_classes['calendar'] should they exist before generating the calendar.

Any ideas?
#2

[eluser]kevthedude[/eluser]
Ah ha! Figured it out. Pretty simple actually, here's the solution if anyone else has this issue:

Code:
$this->calendar->initialize($prefs);
#3

[eluser]Genetic[/eluser]
I never use the calendar plugins.

Please tell me about $prefs.




Theme © iAndrew 2016 - Forum software by © MyBB