![]() |
Using Multiple Calendars - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: Using Multiple Calendars (/showthread.php?tid=23426) |
Using Multiple Calendars - El Forum - 10-10-2009 [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? Using Multiple Calendars - El Forum - 10-10-2009 [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); Using Multiple Calendars - El Forum - 10-12-2009 [eluser]Genetic[/eluser] I never use the calendar plugins. Please tell me about $prefs. |